12 #ifndef M4RI_GRAYFLEX_H
13 #define M4RI_GRAYFLEX_H
39 #define __M4RI_MAXKAY 16
136 static unsigned const int b[] = { 0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000 };
137 static unsigned const int S[] = { 1, 2, 4, 8, 16 };
139 for (
int i = 4; i >= 0; --i)
168 #endif // M4RI_GRAYFLEX_H
int m4ri_gray_code(int i, int l)
Definition: graycode.c:31
void m4ri_build_code(int *ord, int *inc, int l)
Definition: graycode.c:42
int * ord
Definition: graycode.h:69
int m4ri_opt_k(int a, int b, int c)
Return the optimal var k for the given parameters.
Definition: graycode.c:82
void m4ri_destroy_all_codes(void)
Definition: graycode.c:68
code ** m4ri_codebook
Definition: graycode.c:29
static int log2_floor(int v)
Definition: graycode.h:135
Gray codes.
Definition: graycode.h:65
int * inc
Definition: graycode.h:73
void m4ri_build_all_codes(void)
Generates global code book.
Definition: graycode.c:54