Search
7:31:13
terrorjack4
** NICK terrorjack
9:22:56
stassats
looks like i can test for signed-byte-32 by sign extending and comparing with the original value
9:23:17
stassats
which is just a single instruction on arm64, CMP NL2, NL2, SXTW
9:33:37
stassats
x86-64 needs two instructions, MOVSX and CMP, but it's still more compact than comparing against two numbers
9:33:55
stassats
even gcc doesn't know about that trick
9:34:01
stassats
i hope i didn't mess up the math, though
9:36:50
stassats
can be extended to 8-bit and 16-bit, but i wonder if any bit can be used by shifting first