-
Notifications
You must be signed in to change notification settings - Fork 302
Use switch tables instead of long strings of cmp/je combos #117
Comments
i got curious on this question of multiple cmps vs lookup table. i found that cmps win for rdx<7 and then lookup win for the rest. funny - here's the gas code i used on linux - you can call lookup() and cmps() $ cat j.s On 7 October 2016 at 20:44, Faissal Bensefia notifications@github.com
|
Awesome idea!! I'll give it a test on my end. |
Instead of doing stuff like:
You could do:
And I believe it would be much faster, I also believe this is what GCC does (or at least, something similar) for switch statements.
The text was updated successfully, but these errors were encountered: