Daily Shaarli

All links of one day in a single page.

May 18, 2018

Low Level Bit Hacks You Absolutely Must Know - good coders code, great coders reuse

I decided to write an article about a thing that is second nature to embedded systems programmers - low level bit hacks. Bit hacks are ingenious little programming tricks that manipulate integers in a smart and efficient manner. Instead of performing some operation (such as counting the 1 bits in an integer) by looping over individual bits, these programming nuggets do the same with one or two carefully chosen bitwise operations.