From 3d9d484bfd8a0cf612740ec544baae153ef60af8 Mon Sep 17 00:00:00 2001 From: masta Date: Thu, 21 Jun 2012 20:12:31 +0000 Subject: [PATCH] Remove redundant CPU-Check for FPC_HAS_INTERNAL_ABS_LONG compiler/options.pas only defines FPC_HAS_INTERNAL_ABS_LONG for cpus which support the intrinsic. No need to check again in the rtl. git-svn-id: trunk@21677 - --- rtl/inc/systemh.inc | 2 +- rtl/java/jsystemh.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/inc/systemh.inc b/rtl/inc/systemh.inc index 511a4487a1..f9df59db34 100644 --- a/rtl/inc/systemh.inc +++ b/rtl/inc/systemh.inc @@ -644,7 +644,7 @@ Function Random: extended; Procedure Randomize; {$endif FPC_HAS_FEATURE_RANDOM} -{$ifdef FPC_HAS_INTERNAL_ABS_LONG and (defined(cpui386) or defined(cpux86_64) or defined(cpupowerpc))} +{$ifdef FPC_HAS_INTERNAL_ABS_LONG} {$define FPC_SYSTEM_HAS_ABS_LONGINT} Function abs(l:longint):longint;[internproc:fpc_in_abs_long]; {$else FPC_HAS_INTERNAL_ABS_LONG} diff --git a/rtl/java/jsystemh.inc b/rtl/java/jsystemh.inc index 583e93b440..a4d8084ca4 100644 --- a/rtl/java/jsystemh.inc +++ b/rtl/java/jsystemh.inc @@ -169,7 +169,7 @@ Function Random: extended; Procedure Randomize; {$endif FPC_HAS_FEATURE_RANDOM} -{$ifdef FPC_HAS_INTERNAL_ABS_LONG and (defined(cpui386) or defined(cpux86_64) or defined(cpupowerpc))} +{$ifdef FPC_HAS_INTERNAL_ABS_LONG} {$define FPC_SYSTEM_HAS_ABS_LONGINT} Function abs(l:longint):longint;[internproc:fpc_in_abs_long]; {$else FPC_HAS_INTERNAL_ABS_LONG}