News for hackers. Stuff that matters.
Re:Do you know your bitwise operators? by blt on Friday January 10, 2014 @03:06PM (#7039017)
- Packing lots of small pieces of information into a single memory word - for example, 3-3-2 bit RGB [1]

- Interacting with hardware that uses certain bits in a register to control behavior - for example, Arduino digital ports [2]

- Doing arithmetic extra-fast with numbers that are powers of two - modulo becomes bitwise-and, division and multiplication become shifts

[1] http://en.wikipedia.org/wiki/List_of_monochrome_and_RGB_pale...

[2] http://arduino.cc/en/Reference/PortManipulation

There are no comments on this comment yet.