aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-29 21:50:57 +0000
committerlloyd <[email protected]>2008-09-29 21:50:57 +0000
commit74691fe02646723b7235a31f2570036c9a05b940 (patch)
treeb6df78b2365a6e0d961274ff759fac0850f28ab9 /src/utils
parent98e89e86beec39c9a789f8dba72dc5746c31943d (diff)
Use bswapl on 32-bit x86 as well
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/bswap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/bswap.h b/src/utils/bswap.h
index 8fb5ed12f..3a2b32f3c 100644
--- a/src/utils/bswap.h
+++ b/src/utils/bswap.h
@@ -21,7 +21,7 @@ inline u16bit reverse_bytes(u16bit input)
inline u32bit reverse_bytes(u32bit input)
{
-#if defined(BOTAN_TARGET_ARCH_IS_AMD64)
+#if defined(BOTAN_TARGET_ARCH_IS_IA32) || defined(BOTAN_TARGET_ARCH_IS_AMD64)
asm("bswapl %0" : "=r" (input) : "0" (input));
return input;
#else