Updated RandomX

This commit is contained in:
SChernykh 2019-08-27 16:12:13 +02:00
parent 39e69c2723
commit 21a56c9cbf
9 changed files with 151 additions and 36 deletions

View file

@ -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;
}