112 static inline int log2_floor(
int v) {
113 static unsigned const int b[] = { 0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000 };
114 static unsigned const int S[] = { 1, 2, 4, 8, 16 };
116 for (
int i = 4; i >= 0; --i) {
int * ord
Definition: graycode.h:65
code * build_code(int l)
Definition: graycode.cpp:35
Gray codes.
Definition: graycode.h:61
int * inc
Definition: graycode.h:69
int gray_code(int i, int l)
Definition: graycode.cpp:24
void destroy_code(code *codebook)
Definition: graycode.cpp:54