Author Topic: low level bit hacks...  (Read 6121 times)


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4024
    • View Profile
low level bit hacks...
« 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. ...