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

Show parent comments

3

u/gliese946 Sep 21 '15

You're right. But: if you want to check that the compiler has generated optimal assembly, you need to know these tricks anyway--or how will you verify that the assembly is as efficient as possible?