#ifndef LAYOUT_H #define LAYOUT_H #include #ifndef PROFILE_LAYOUT #define PROFILE_LAYOUT 0 #endif #if PROFILE_LAYOUT == 0 typedef struct { int64_t x; int64_t y; int64_t gain; int64_t bias; int64_t limit; } Profile; #elif PROFILE_LAYOUT == 1 typedef struct { int64_t limit; int64_t bias; int64_t y; int64_t x; int64_t gain; } Profile; #elif PROFILE_LAYOUT == 2 typedef struct { int64_t gain; int64_t x; int64_t limit; int64_t y; int64_t bias; } Profile; #elif PROFILE_LAYOUT == 3 typedef struct { int64_t bias; int64_t limit; int64_t gain; int64_t y; int64_t x; } Profile; #else #error unsupported PROFILE_LAYOUT #endif #endif