WR Home      Topic Home      Chapter:  1  2  3 
<Previous Next>

Chapter 03

Commonly used bit-manipulation functions

Page 10

Some Questions on Bit Manipulation




Question : Reverse bits in a byte
Example:
The bit pattern 00000101
becomes pattern 10100000 <= Produce the mirror image
00000101 || 10100000

Example:
The bit pattern 1011-1001
becomes pattern 1001-1101 <= Produce the mirror image
1011-1001 || 1001-1101




WR Home      Topic Home      Chapter:  1  2  3 
<Previous Next>