summaryrefslogtreecommitdiff
path: root/match
diff options
context:
space:
mode:
Diffstat (limited to 'match')
-rw-r--r--match/match.c4
-rw-r--r--match/match.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/match/match.c b/match/match.c
index dbb14ba..a3f4deb 100644
--- a/match/match.c
+++ b/match/match.c
@@ -35,8 +35,8 @@
35 * 35 *
36 */ 36 */
37 37
38typedef unsigned short col_t[1]; 38typedef unsigned col_t[1];
39typedef unsigned short mat_t[DIM_FINGER]; 39typedef unsigned mat_t[DIM_FINGER];
40 40
41#define GET1(m, x) ((m[0] >> (x)) & 1U) 41#define GET1(m, x) ((m[0] >> (x)) & 1U)
42#define SET1(m, x) (m[0] |= (1U << (x))) 42#define SET1(m, x) (m[0] |= (1U << (x)))
diff --git a/match/match.h b/match/match.h
index 620d046..0c4274e 100644
--- a/match/match.h
+++ b/match/match.h
@@ -28,7 +28,7 @@
28 * Bitmasks are used extensively. 28 * Bitmasks are used extensively.
29 */ 29 */
30 30
31#define DIM_FINGER 16 31#define DIM_FINGER 32
32#define DIM2_FINGER (DIM_FINGER * DIM_FINGER) 32#define DIM2_FINGER (DIM_FINGER * DIM_FINGER)
33 33
34#define MIN(a, b) ((a) < (b) ? (a) : (b)) 34#define MIN(a, b) ((a) < (b) ? (a) : (b))