upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sha.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sha.h b/src/sha.h
index e3af7b4..ddf5cf1 100644
--- a/src/sha.h
+++ b/src/sha.h
@@ -72,7 +72,7 @@ inline word16 ByteReverse(word16 value)
72 72
73inline word32 ByteReverse(word32 value) 73inline word32 ByteReverse(word32 value)
74{ 74{
75#if defined(__GNUC__) 75#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
76 __asm__ ("bswap %0" : "=r" (value) : "0" (value)); 76 __asm__ ("bswap %0" : "=r" (value) : "0" (value));
77 return value; 77 return value;
78#elif defined(CRYPTOPP_BYTESWAP_AVAILABLE) 78#elif defined(CRYPTOPP_BYTESWAP_AVAILABLE)