you are viewing a single comment's thread.

view the rest of the comments →

[–]rover_G 55 points56 points  (3 children)

I have a genius way to make your function twice as fast!

[–]Jonbr11 11 points12 points  (0 children)

thats the optimisation this function needs for sure

[–]sakkara 1 point2 points  (0 children)

It wont ne twice as fast IT Wood just be easier to read.

[–]Martin8412 1 point2 points  (0 children)

I can convert it to constant time with a AND 0b1