-static const char not_table[16] = { SC_F, SC_E, SC_D, SC_C, SC_B, SC_A, SC_9, SC_8,
- SC_7, SC_6, SC_5, SC_4, SC_3, SC_2, SC_1, SC_0 };
-
-static const char shift_table[4] = { SC_1, SC_2, SC_4, SC_8 };
-
-static const char and_table[16][16] = {
- { SC_0, SC_0, SC_0, SC_0, SC_0, SC_0, SC_0, SC_0,
- SC_0, SC_0, SC_0, SC_0, SC_0, SC_0, SC_0, SC_0 },
-
- { SC_0, SC_1, SC_0, SC_1, SC_0, SC_1, SC_0, SC_1,
- SC_0, SC_1, SC_0, SC_1, SC_0, SC_1, SC_0, SC_1 },
-
- { SC_0, SC_0, SC_2, SC_2, SC_0, SC_0, SC_2, SC_2,
- SC_0, SC_0, SC_2, SC_2, SC_0, SC_0, SC_2, SC_2 },
-
- { SC_0, SC_1, SC_2, SC_3, SC_0, SC_1, SC_2, SC_3,
- SC_0, SC_1, SC_2, SC_3, SC_0, SC_1, SC_2, SC_3 },
-
- { SC_0, SC_0, SC_0, SC_0, SC_4, SC_4, SC_4, SC_4,
- SC_0, SC_0, SC_0, SC_0, SC_4, SC_4, SC_4, SC_4 },
-
- { SC_0, SC_1, SC_0, SC_1, SC_4, SC_5, SC_4, SC_5,
- SC_0, SC_1, SC_0, SC_1, SC_4, SC_5, SC_4, SC_5 },
-
- { SC_0, SC_0, SC_2, SC_2, SC_4, SC_4, SC_6, SC_6,
- SC_0, SC_0, SC_2, SC_2, SC_4, SC_4, SC_6, SC_6 },
-
- { SC_0, SC_1, SC_2, SC_3, SC_4, SC_5, SC_6, SC_7,
- SC_0, SC_1, SC_2, SC_3, SC_4, SC_5, SC_6, SC_7 },
-
- { SC_0, SC_0, SC_0, SC_0, SC_0, SC_0, SC_0, SC_0,
- SC_8, SC_8, SC_8, SC_8, SC_8, SC_8, SC_8, SC_8 },
-
- { SC_0, SC_1, SC_0, SC_1, SC_0, SC_1, SC_0, SC_1,
- SC_8, SC_9, SC_8, SC_9, SC_8, SC_9, SC_8, SC_9 },
-
- { SC_0, SC_0, SC_2, SC_2, SC_0, SC_0, SC_2, SC_2,
- SC_8, SC_8, SC_A, SC_A, SC_8, SC_8, SC_A, SC_A },
-
- { SC_0, SC_1, SC_2, SC_3, SC_0, SC_1, SC_2, SC_3,
- SC_8, SC_9, SC_A, SC_B, SC_8, SC_9, SC_A, SC_B },
-
- { SC_0, SC_0, SC_0, SC_0, SC_4, SC_4, SC_4, SC_4,
- SC_8, SC_8, SC_8, SC_8, SC_C, SC_C, SC_C, SC_C },
-
- { SC_0, SC_1, SC_0, SC_1, SC_4, SC_5, SC_4, SC_5,
- SC_8, SC_9, SC_8, SC_9, SC_C, SC_D, SC_C, SC_D },
-
- { SC_0, SC_0, SC_2, SC_2, SC_4, SC_4, SC_6, SC_6,
- SC_8, SC_8, SC_A, SC_A, SC_C, SC_C, SC_E, SC_E },
-
- { SC_0, SC_1, SC_2, SC_3, SC_4, SC_5, SC_6, SC_7,
- SC_8, SC_9, SC_A, SC_B, SC_C, SC_D, SC_E, SC_F } };
-
-static const char or_table[16][16] = {
- { SC_0, SC_1, SC_2, SC_3, SC_4, SC_5, SC_6, SC_7,
- SC_8, SC_9, SC_A, SC_B, SC_C, SC_D, SC_E, SC_F },
-
- { SC_1, SC_1, SC_3, SC_3, SC_5, SC_5, SC_7, SC_7,
- SC_9, SC_9, SC_B, SC_B, SC_D, SC_D, SC_F, SC_F },
-
- { SC_2, SC_3, SC_2, SC_3, SC_6, SC_7, SC_6, SC_7,
- SC_A, SC_B, SC_A, SC_B, SC_E, SC_F, SC_E, SC_F },
-
- { SC_3, SC_3, SC_3, SC_3, SC_7, SC_7, SC_7, SC_7,
- SC_B, SC_B, SC_B, SC_B, SC_F, SC_F, SC_F, SC_F },
-
- { SC_4, SC_5, SC_6, SC_7, SC_4, SC_5, SC_6, SC_7,
- SC_C, SC_D, SC_E, SC_F, SC_C, SC_D, SC_E, SC_F },
-
- { SC_5, SC_5, SC_7, SC_7, SC_5, SC_5, SC_7, SC_7,
- SC_D, SC_D, SC_F, SC_F, SC_D, SC_D, SC_F, SC_F },
-
- { SC_6, SC_7, SC_6, SC_7, SC_6, SC_7, SC_6, SC_7,
- SC_E, SC_F, SC_E, SC_F, SC_E, SC_F, SC_E, SC_F },
-
- { SC_7, SC_7, SC_7, SC_7, SC_7, SC_7, SC_7, SC_7,
- SC_F, SC_F, SC_F, SC_F, SC_F, SC_F, SC_F, SC_F },
-
- { SC_8, SC_9, SC_A, SC_B, SC_C, SC_D, SC_E, SC_F,
- SC_8, SC_9, SC_A, SC_B, SC_C, SC_D, SC_E, SC_F },
-
- { SC_9, SC_9, SC_B, SC_B, SC_D, SC_D, SC_F, SC_F,
- SC_9, SC_9, SC_B, SC_B, SC_D, SC_D, SC_F, SC_F },
-
- { SC_A, SC_B, SC_A, SC_B, SC_E, SC_F, SC_E, SC_F,
- SC_A, SC_B, SC_A, SC_B, SC_E, SC_F, SC_E, SC_F },
-
- { SC_B, SC_B, SC_B, SC_B, SC_F, SC_F, SC_F, SC_F,
- SC_B, SC_B, SC_B, SC_B, SC_F, SC_F, SC_F, SC_F },
-
- { SC_C, SC_D, SC_E, SC_F, SC_C, SC_D, SC_E, SC_F,
- SC_C, SC_D, SC_E, SC_F, SC_C, SC_D, SC_E, SC_F },
-
- { SC_D, SC_D, SC_F, SC_F, SC_D, SC_D, SC_F, SC_F,
- SC_D, SC_D, SC_F, SC_F, SC_D, SC_D, SC_F, SC_F },
-
- { SC_E, SC_F, SC_E, SC_F, SC_E, SC_F, SC_E, SC_F,
- SC_E, SC_F, SC_E, SC_F, SC_E, SC_F, SC_E, SC_F },
-
- { SC_F, SC_F, SC_F, SC_F, SC_F, SC_F, SC_F, SC_F,
- SC_F, SC_F, SC_F, SC_F, SC_F, SC_F, SC_F, SC_F } };
-
-static char const xor_table[16][16] = {
- { SC_0, SC_1, SC_2, SC_3, SC_4, SC_5, SC_6, SC_7,
- SC_8, SC_9, SC_A, SC_B, SC_C, SC_D, SC_E, SC_F },
-
- { SC_1, SC_0, SC_3, SC_2, SC_5, SC_4, SC_7, SC_6,
- SC_9, SC_8, SC_B, SC_A, SC_D, SC_C, SC_F, SC_E },
-
- { SC_2, SC_3, SC_0, SC_1, SC_6, SC_7, SC_4, SC_5,
- SC_A, SC_B, SC_8, SC_9, SC_E, SC_F, SC_C, SC_D },
-
- { SC_3, SC_2, SC_1, SC_0, SC_7, SC_6, SC_5, SC_4,
- SC_B, SC_A, SC_9, SC_8, SC_F, SC_E, SC_D, SC_C },
-
- { SC_4, SC_5, SC_6, SC_7, SC_0, SC_1, SC_2, SC_3,
- SC_C, SC_D, SC_E, SC_F, SC_8, SC_9, SC_A, SC_B },
-
- { SC_5, SC_4, SC_7, SC_6, SC_1, SC_0, SC_3, SC_2,
- SC_D, SC_C, SC_F, SC_E, SC_9, SC_8, SC_B, SC_A },
-
- { SC_6, SC_7, SC_4, SC_5, SC_2, SC_3, SC_0, SC_1,
- SC_E, SC_F, SC_C, SC_D, SC_A, SC_B, SC_8, SC_9 },
-
- { SC_7, SC_6, SC_5, SC_4, SC_3, SC_2, SC_1, SC_0,
- SC_F, SC_E, SC_D, SC_C, SC_B, SC_A, SC_9, SC_8 },
-
- { SC_8, SC_9, SC_A, SC_B, SC_C, SC_D, SC_E, SC_F,
- SC_0, SC_1, SC_2, SC_3, SC_4, SC_5, SC_6, SC_7 },
-
- { SC_9, SC_8, SC_B, SC_A, SC_D, SC_C, SC_F, SC_E,
- SC_1, SC_0, SC_3, SC_2, SC_5, SC_4, SC_7, SC_6 },
-
- { SC_A, SC_B, SC_8, SC_9, SC_E, SC_F, SC_C, SC_D,
- SC_2, SC_3, SC_0, SC_1, SC_6, SC_7, SC_4, SC_5 },
-
- { SC_B, SC_A, SC_9, SC_8, SC_F, SC_E, SC_D, SC_C,
- SC_3, SC_2, SC_1, SC_0, SC_7, SC_6, SC_5, SC_4 },
-
- { SC_C, SC_D, SC_E, SC_F, SC_8, SC_9, SC_A, SC_B,
- SC_4, SC_5, SC_6, SC_7, SC_0, SC_1, SC_2, SC_3 },
-
- { SC_D, SC_C, SC_F, SC_E, SC_9, SC_8, SC_B, SC_A,
- SC_5, SC_4, SC_7, SC_6, SC_1, SC_0, SC_3, SC_2 },
-
- { SC_E, SC_F, SC_C, SC_D, SC_A, SC_B, SC_8, SC_9,
- SC_6, SC_7, SC_4, SC_5, SC_2, SC_3, SC_0, SC_1 },
-
- { SC_F, SC_E, SC_D, SC_C, SC_B, SC_A, SC_9, SC_8,
- SC_7, SC_6, SC_5, SC_4, SC_3, SC_2, SC_1, SC_0 }
- };
-