Created
September 17, 2018 13:53
-
-
Save moorthy-g/b1d148b7e885f97ca1d24c75fd118fe8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Merge Low 30bits and other high bits | |
//Reverse of https://gist.github.com/moorthy-g/bb3716303384365bce7b98b67af14fd1 | |
function mergeBits30(splitBits) { | |
let [highBits, lowBits] = splitBits; | |
return (highBits & 0x3fffff) * 0x40000000 + (lowBits & 0x3fffffff); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment