diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sha1-generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sha1-generic.c b/src/sha1-generic.c index 600dcf5..b084f09 100644 --- a/src/sha1-generic.c +++ b/src/sha1-generic.c @@ -74,8 +74,8 @@ rotl32(uint32_t x, uint8_t bits) #if (__GNUC__ || __TINYC__) && __x86_64__ __asm__ ("roll %1, %0" : "+r" (x) : "c" (bits) : "cc"); return x; -#elif __GNUC__ && __aarch64__ /* TODO: Test this! */ - __asm__ ("ror %0, %0, %1" : "+r" (x) : "c" (-bits)); +#elif __GNUC__ && __aarch64__ + __asm__ ("ror %w0, %w0, %w1" : "+r" (x) : "r" (-bits)); return x; #else return (x << bits) | (x >> (32 - bits)); |