diff options
author | Simon Warta <[email protected]> | 2015-10-16 12:12:49 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-10-16 12:12:49 +0200 |
commit | f257cb324614adb5f9266ca185ab2bfeb64b1dd4 (patch) | |
tree | ebc1e2bea4a77f194dbd69f8d76d44df52336e09 /src/lib/utils | |
parent | be33a49c734b5b83cbf64fa132c062ba8643bbe1 (diff) | |
parent | db96431235190ebe7ec50ddbc73d3a05e4e712d0 (diff) |
Merge pull request #298 from tiwoc/arm64
Support for 64 bit ARM
Diffstat (limited to 'src/lib/utils')
-rw-r--r-- | src/lib/utils/bswap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/bswap.h b/src/lib/utils/bswap.h index 6773b196d..beb3f9555 100644 --- a/src/lib/utils/bswap.h +++ b/src/lib/utils/bswap.h @@ -31,7 +31,7 @@ inline u16bit reverse_bytes(u16bit val) */ inline u32bit reverse_bytes(u32bit val) { -#if BOTAN_GCC_VERSION >= 430 && !defined(BOTAN_TARGET_CPU_IS_ARM_FAMILY) +#if BOTAN_GCC_VERSION >= 430 && !defined(BOTAN_TARGET_ARCH_IS_ARM32) /* GCC intrinsic added in 4.3, works for a number of CPUs @@ -47,7 +47,7 @@ inline u32bit reverse_bytes(u32bit val) asm("bswapl %0" : "=r" (val) : "0" (val)); return val; -#elif defined(BOTAN_USE_GCC_INLINE_ASM) && defined(BOTAN_TARGET_CPU_IS_ARM_FAMILY) +#elif defined(BOTAN_USE_GCC_INLINE_ASM) && defined(BOTAN_TARGET_ARCH_IS_ARM32) asm ("eor r3, %1, %1, ror #16\n\t" "bic r3, r3, #0x00FF0000\n\t" |