Created
February 27, 2017 23:06
-
-
Save Hugoberry/c844d6300dcc85915515870d6a190a85 to your computer and use it in GitHub Desktop.
Function to reverse an 8 bit number
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
reverse = (x) => | |
Number.Mod(Number.BitwiseAnd((x* 0x0202020202),0x010884422010),1023), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment