From c1131a0c9c628976d35bf6669e4d7aff7ac78988 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sat, 8 Nov 2008 22:19:50 +0100 Subject: matching stable! however, now crashes X occasionally... stream overload? Signed-off-by: Henrik Rydberg --- src/common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index c57ae1a..0ddfaaf 100644 --- a/src/common.h +++ b/src/common.h @@ -30,6 +30,10 @@ #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) +#define GETBIT(m, x) ((m>>(x))&1U) +#define SETBIT(m, x) (m|=(1U<<(x))) +#define CLEARBIT(m, x) (m&=~(1U<<(x))) + //////////////////////////////////////////////////////// #endif -- cgit v1.2.3