#include <at_gray_code.h>
Static Public Methods | |
| void | calculate (T &io_value) |
|
||||||||||
|
calculate will calculate the inverse of the gray code conversion above. The value is passed by reference and is modified in place. In general the computation is : value ^= value >> 1; value ^= value >> 2; value ^= value >> 4; // terminate here for 8 bit value ^= value >> 8; // terminate here for 16 bit value ^= value >> 16; // terminate here for 32 bit value ^= value >> 32; // terminate here for 64 bit
|
Generated for Austria by
and
MakeXS at Sun Oct 24 17:35:34 PDT 2004