On , Robin Sheppard (1:153/9{at}fidonet) wrote:
> The method I use is just a handy set of function-like macros I wrote.
> Look them over, and I'm sure you'll be able to see how they work. :>
>
> #define setbit(word,bit) ((unsigned)(word|(0x0001< #define clrbit(word,bit) ((unsigned)(word&(~(0x0001< #define chgbit(word,bit) ((unsigned)(word^(0x0001< #define chkbit(word,bit) ((unsigned)((word&(0x0001< * Origin: MicroFirm : Down to the C in chips (1:106/2000.6)
SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728 810
SEEN-BY: 639/252 670/213 218
@PATH: 30883/6 106/2000 396/1 633/260 635/506 728 633/267
|