Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1034917 // unscrambleInt - reverse of scrambleInt

JavaX fragment (include)

// from https://stackoverflow.com/questions/664014/what-integer-hash-function-are-good-that-accepts-an-integer-hash-key
// reverse of scrambleInt
static int unscrambleInt(int x) {
  x = ((x >>> 16) ^ x) * 0x119de1f3;
  x = ((x >>> 16) ^ x) * 0x119de1f3;
  x = (x >>> 16) ^ x;
  ret x;
}

Author comment

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: 122 / 131
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)