Go to the documentation of this file.
12 #ifndef M4RI_GRAYFLEX_H
13 #define M4RI_GRAYFLEX_H
20 #if defined(DLL_EXPORT) && defined(M4RI_BUILDING_M4RI)
21 #define M4RI_DLL_EXPORT __declspec(dllexport)
22 #elif defined(M4RI_USE_DLL) && !defined(M4RI_BUILDING_M4RI)
23 #define M4RI_DLL_EXPORT __declspec(dllimport)
25 #define M4RI_DLL_EXPORT
28 #define M4RI_DLL_EXPORT
55 #define __M4RI_MAXKAY 16
152 static unsigned const int b[] = { 0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000 };
153 static unsigned const int S[] = { 1, 2, 4, 8, 16 };
155 for (
int i = 4; i >= 0; --i)
184 #endif // M4RI_GRAYFLEX_H
int m4ri_gray_code(int i, int l)
Definition: graycode.c:31
void m4ri_destroy_all_codes(void)
Definition: graycode.c:68
void m4ri_build_code(int *ord, int *inc, int l)
Definition: graycode.c:42
int * ord
Definition: graycode.h:85
static int log2_floor(int v)
Definition: graycode.h:151
int m4ri_opt_k(int a, int b, int c)
Return the optimal var k for the given parameters.
Definition: graycode.c:82
M4RI_DLL_EXPORT code ** m4ri_codebook
Definition: graycode.c:29
int * inc
Definition: graycode.h:89
void m4ri_build_all_codes(void)
Generates global code book.
Definition: graycode.c:54
Gray codes.
Definition: graycode.h:81