SUBFREQUENZ.NET - LINK ACCUMULATOR

PERSONAL COMPUTING, ELECTRONICS AND DIY SOUND TECH => Personal Computing => Topic started by: Link on January 06, 2015, 05:00:31 PM

Title: low level bit hacks...
Post by: Link on January 06, 2015, 05:00:31 PM
low level bit hacks
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. ...
http://www.catonmat.net/blog/low-level-bit-hacks-you-absolutely-must-know/