mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-05 16:07:42 +00:00
Repair compilation with Clang 9.0.0 (which now includes its own _rotr intrinsic)
This commit is contained in:
parent
54a1c614f7
commit
32c3d4b9f6
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ static inline uint32_t sub_word(uint32_t key)
|
||||||
saes_sbox[key & 0xff];
|
saes_sbox[key & 0xff];
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__clang__) || defined(XMRIG_ARM)
|
#if (defined(__clang__) && __clang_major__ != 9) || defined(XMRIG_ARM)
|
||||||
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 << ((32 - amount) & 31));
|
return (value >> amount) | (value << ((32 - amount) & 31));
|
||||||
|
|
Loading…
Reference in a new issue