Skip to content

Commit

Permalink
nthash.hpp: removed extra op in rolling function
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadi committed Sep 5, 2018
1 parent b5a1044 commit 07e3f4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nthash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ inline uint64_t NTR64(const uint64_t rhVal, const unsigned k, const unsigned cha
uint64_t rBits = seedTab[charIn&cpOff] & 0x1FFFFFFFF;
uint64_t sIn = (rol31(lBits,k) << 33) | (rol33(rBits,k));
uint64_t hVal = rhVal ^ sIn;
hVal ^= seedTab[charOut&cpOff];
hVal = ror1(hVal);
uint64_t sOut = ror1(seedTab[charOut&cpOff]);
hVal ^= sOut;
hVal = swapbits3263(hVal);
return hVal;
}
Expand Down

0 comments on commit 07e3f4d

Please sign in to comment.