Updated RandomX

This commit is contained in:
SChernykh
2019-08-27 16:12:13 +02:00
parent dd52e4de02
commit fc670b2a58
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;
}