Re:Low Level Bit Hacks You Absolutely Must Know
by jerrre on Friday May 11, 2018 @03:26AM
(#17045543)
why is this strange? -O0 is no optimization at all, so it isn't strange % yields an integer division right?
On -03 they compile to the same, both signed and unsigned.
Re:Low Level Bit Hacks You Absolutely Must Know
by cozzyd on Friday May 11, 2018 @10:10AM
(#17047387)
For some reason gcc is still optimizing it though!
https://godbolt.org/g/N8mTL6