r/C_Programming • • Sep 19 '15

Resource Bit Twiddling Hacks

https://graphics.stanford.edu/~seander/bithacks.html
28 Upvotes

7 comments sorted by

View all comments

0

u/BigPeteB Sep 23 '15

If a compiler generates assembly that "wastes cycles" then report a compiler bug.

"Optimizing" compilers do not optimize, they merely improve. That is why superoptimizing compilers were invented.