aboutsummaryrefslogtreecommitdiffstats
path: root/match/match.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-11-08 16:01:51 +0100
committerHenrik Rydberg <rydberg@euromail.se>2008-11-08 16:01:51 +0100
commit809b43cb3bac52ad87228a458dcd3dbf11180c97 (patch)
treeffc51f2d9fa6a76e85170bb0ac1279931e722a4c /match/match.c
parent9f6a75a35de8d05a8ae2e8b5d5cd10d960d4de4b (diff)
downloadxorg-input-kobomultitouch-809b43cb3bac52ad87228a458dcd3dbf11180c97.tar.gz
xorg-input-kobomultitouch-809b43cb3bac52ad87228a458dcd3dbf11180c97.tar.bz2
xorg-input-kobomultitouch-809b43cb3bac52ad87228a458dcd3dbf11180c97.zip
cleanup
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'match/match.c')
-rw-r--r--match/match.c10
1 files changed, 3 insertions, 7 deletions
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<<row))
-#define CLEARBIT2(m, row, col) (m[col]&=~(1U<<row))
-
-#define GETBIT(m, x) ((m>>x)&1U)
-#define SETBIT(m, x) (m|=(1U<<x))
-#define CLEARBIT(m, x) (m&=~(1U<<x))
+#define GETBIT2(m, row, col) ((m[col]>>(row))&1U)
+#define SETBIT2(m, row, col) (m[col]|=(1U<<(row)))
+#define CLEARBIT2(m, row, col) (m[col]&=~(1U<<(row)))
/********************************************************/