Programming-Language-Benchmarks icon indicating copy to clipboard operation
Programming-Language-Benchmarks copied to clipboard

lua has had bitwise shift operators since 2015

Open thenumbernine opened this issue 2 years ago • 0 comments

In binarytrees and merkeltrees, for bit-shifting, you are using 2 ^ x, which calls pow(). You should use 1 << x like you do in other languages.

thenumbernine avatar May 06 '23 07:05 thenumbernine