mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 18:09:30 +02:00
Remove unnecessary compiler version checks in rtl/arm/arm.inc
The CPUARM_HAS_* flags are never defined in 2.6, so there is no reason to check for the compiler version. git-svn-id: trunk@22128 -
This commit is contained in:
parent
cf4a2bd392
commit
13e2572140
@ -947,7 +947,7 @@ is bigger than the gain of the optimized function.
|
||||
function AsmSwapEndian(const AValue: SmallInt): SmallInt;{$ifdef SYSTEMINLINE}inline;{$endif};assembler;nostackframe;
|
||||
asm
|
||||
// We're starting with 4321
|
||||
{$if defined(CPUARM_HAS_REV) and (FPC_FULLVERSION > 20600)}
|
||||
{$if defined(CPUARM_HAS_REV)}
|
||||
rev r0, r0 // Reverse byteorder r0 = 1234
|
||||
mov r0, r0, shr #16 // Shift down to 16bits r0 = 0012
|
||||
{$else}
|
||||
@ -986,7 +986,7 @@ end;
|
||||
function SwapEndian(const AValue: Int64): Int64; assembler; nostackframe;
|
||||
asm
|
||||
// fpc >2.6.0 adds the "rev" instruction in the internal assembler
|
||||
{$if defined(CPUARM_HAS_REV) and (FPC_FULLVERSION > 20600)}
|
||||
{$if defined(CPUARM_HAS_REV)}
|
||||
rev r2, r0
|
||||
rev r0, r1
|
||||
mov r1, r2
|
||||
|
Loading…
Reference in New Issue
Block a user