mirror of
https://github.com/wownero/RandomX.git
synced 2026-12-04 05:54:05 +01:00
Merge pull request #6 from vielmetti/patch-1
update ifdef for _rotr on aarch64
This commit is contained in:
+1
-1
@@ -328,7 +328,7 @@ static inline uint32_t subw(uint32_t w) {
|
|||||||
sbox[w & 0xff];
|
sbox[w & 0xff];
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__clang__) || defined(__arm__)
|
#if defined(__clang__) || defined(__arm__) || defined(__aarch64__)
|
||||||
static inline uint32_t _rotr(uint32_t value, uint32_t amount) {
|
static inline uint32_t _rotr(uint32_t value, uint32_t amount) {
|
||||||
return (value >> amount) | (value << (-amount & 31));
|
return (value >> amount) | (value << (-amount & 31));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user