Strange behaviour with my macros.
When I set bit 1, getbit returns a 128.
Than I clear bit 1 and getbit returns 254.
Is there anything wrong with those macros ?
#define SETBIT(x,n) ((x)|=1L<<(n))
#define CLEARBIT(x,n) ((x)&=~(1L<<(n)))
#define GETBIT(x,n) ((x)&1L<<(n))
thanks in advance.