Updated RandomX
This commit is contained in:
parent
39e69c2723
commit
21a56c9cbf
9 changed files with 151 additions and 36 deletions
|
@ -137,7 +137,7 @@ namespace randomx {
|
|||
constexpr int RegisterNeedsDisplacement = 5; //x86 r13 register
|
||||
constexpr int RegisterNeedsSib = 4; //x86 r12 register
|
||||
|
||||
inline bool isPowerOf2(uint64_t x) {
|
||||
inline bool isZeroOrPowerOf2(uint64_t x) {
|
||||
return (x & (x - 1)) == 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue