and another bug in setbit, etc. macros..
This commit is contained in:
parent
e0ff0d34dc
commit
2e41887f54
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||||
|
|
||||||
#define __bitop(x,i,o) ((a)[(i)/8] o 1<<(i)%8)
|
#define __bitop(x,i,o) ((x)[(i)/8] o 1<<(i)%8)
|
||||||
#define setbit(x,i) __bitop(x,i,|=)
|
#define setbit(x,i) __bitop(x,i,|=)
|
||||||
#define clrbit(x,i) __bitop(x,i,&=~)
|
#define clrbit(x,i) __bitop(x,i,&=~)
|
||||||
#define isset(x,i) __bitop(x,i,&)
|
#define isset(x,i) __bitop(x,i,&)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue