TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Robin Sheppard
from: Bob Stout
date: 1998-08-16 18:07:10
subject: bitwise stuff [1/2]

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

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.