Created
August 16, 2011 01:42
-
-
Save Ch00by/1148277 to your computer and use it in GitHub Desktop.
alternative code
This file contains hidden or 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
calc = (buf,idx,i) -> | |
if i != 2 then buf[idx++] * Number("0x1" + [1..i].map(j) -> "0") + calc(buf,idx, i - 2) else buf[idx++] | |
return num * 0x100000000000000 + calc(buf,idx,i) | |
## Original, lines 343 - 350 ## | |
return num * 0x100000000000000 + | |
buf[idx++] * 0x1000000000000 + | |
buf[idx++] * 0x10000000000 + | |
buf[idx++] * 0x100000000 + | |
buf[idx++] * 0x1000000 + | |
buf[idx++] * 0x10000 + | |
buf[idx++] * 0x100 + | |
buf[idx++] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment