From 87e25c7e270a52fda8c39296be01918bb6aa75d6 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 17 Sep 2009 18:17:20 +0000 Subject: Fix macro generation + checks in configure.py and bswap.h. Had the effect of preventing the bswap optimizations from being used. :( --- src/utils/bswap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/bswap.h b/src/utils/bswap.h index 08095b319..ec1e81435 100644 --- a/src/utils/bswap.h +++ b/src/utils/bswap.h @@ -24,7 +24,7 @@ inline u16bit reverse_bytes(u16bit input) inline u32bit reverse_bytes(u32bit input) { -#if BOTAN_COMPILER_HAS_GCC_INLINE_ASM && \ +#if BOTAN_USE_GCC_INLINE_ASM && \ (defined(BOTAN_TARGET_ARCH_IS_IA32) || defined(BOTAN_TARGET_ARCH_IS_AMD64)) /* GCC-style inline assembly for x86 or x86-64 */ @@ -45,7 +45,7 @@ inline u32bit reverse_bytes(u32bit input) inline u64bit reverse_bytes(u64bit input) { -#if BOTAN_COMPILER_HAS_GCC_INLINE_ASM && defined(BOTAN_TARGET_ARCH_IS_AMD64) +#if BOTAN_USE_GCC_INLINE_ASM && defined(BOTAN_TARGET_ARCH_IS_AMD64) asm("bswapq %0" : "=r" (input) : "0" (input)); return input; #else -- cgit v1.2.3