TABLESZ
#define TABLEMAX (TABLESZ / 2)
#define MASK (TABLESZ - 1)
} table[TABLESZ];
if (++pos == TABLESZ)