From 809b43cb3bac52ad87228a458dcd3dbf11180c97 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sat, 8 Nov 2008 16:01:51 +0100 Subject: cleanup Signed-off-by: Henrik Rydberg --- match/match.c | 10 +++------- match/match.h | 4 ++++ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'match') diff --git a/match/match.c b/match/match.c index 604faaf..44297d9 100644 --- a/match/match.c +++ b/match/match.c @@ -12,13 +12,9 @@ const float BIG_VALUE = 1e20; typedef unsigned short col_t; -#define GETBIT2(m, row, col) ((m[col]>>row)&1U) -#define SETBIT2(m, row, col) (m[col]|=(1U<>x)&1U) -#define SETBIT(m, x) (m|=(1U<>(row))&1U) +#define SETBIT2(m, row, col) (m[col]|=(1U<<(row))) +#define CLEARBIT2(m, row, col) (m[col]&=~(1U<<(row))) /********************************************************/ diff --git a/match/match.h b/match/match.h index 8936de4..03bf600 100644 --- a/match/match.h +++ b/match/match.h @@ -13,6 +13,10 @@ #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) < (b) ? (b) : (a)) +#define GETBIT(m, x) ((m>>(x))&1U) +#define SETBIT(m, x) (m|=(1U<<(x))) +#define CLEARBIT(m, x) (m&=~(1U<<(x))) + typedef int bool; //////////////////////////////////////////////////////// -- cgit v1.2.3