1 | // from https://stackoverflow.com/questions/664014/what-integer-hash-function-are-good-that-accepts-an-integer-hash-key |
2 | // reverse of scrambleInt |
3 | static int unscrambleInt(int x) { |
4 | x = ((x >>> 16) ^ x) * 0x119de1f3; |
5 | x = ((x >>> 16) ^ x) * 0x119de1f3; |
6 | x = (x >>> 16) ^ x; |
7 | ret x; |
8 | } |
Began life as a copy of #1034916
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034917 |
Snippet name: | unscrambleInt - reverse of scrambleInt |
Eternal ID of this version: | #1034917/1 |
Text MD5: | 46d907e7a2edc2477225328d7861f135 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-15 13:24:46 |
Source code size: | 293 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 120 / 129 |
Referenced in: | [show references] |