Closed lavafroth closed 9 months ago
This PR replaces the current modulo by 2 operation with a bitwise operation. We and the truncated number with 1 which yields 1 if odd, 0 otherwise. Then we immediately add it to the truncated number.
and
Thanks for this!
This PR replaces the current modulo by 2 operation with a bitwise operation. We
and
the truncated number with 1 which yields 1 if odd, 0 otherwise. Then we immediately add it to the truncated number.