Need help on bit operations define
From: MakisGR (beloved27_at_hotmail.com)
Date: 08/26/04
- Next message: Matt: "Two Questions about "strlen", "strcat" and "strcpy""
- Previous message: val: "Re: bsearch for Windows ce"
- Next in thread: Mike Wahler: "Re: Need help on bit operations define"
- Reply: Mike Wahler: "Re: Need help on bit operations define"
- Reply: Kenneth Brody: "Re: Need help on bit operations define"
- Reply: Michael Mair: "Re: Need help on bit operations define"
- Reply: Dave Hansen: "Re: Need help on bit operations define"
- Reply: Douglas A. Gwyn: "Re: Need help on bit operations define"
- Reply: Felipe Magno de Almeida: "Re: Need help on bit operations define"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Aug 2004 19:43:40 GMT
I'm having trouble understanding what the following define does. Can
anyone provide some assistance?
#define SetBits(bits,pos) (((bits)[(pos) >> 3]) |= (1 << ((pos) &
7)))
-- comp.lang.c.moderated - moderation address: clcm@plethora.net
- Next message: Matt: "Two Questions about "strlen", "strcat" and "strcpy""
- Previous message: val: "Re: bsearch for Windows ce"
- Next in thread: Mike Wahler: "Re: Need help on bit operations define"
- Reply: Mike Wahler: "Re: Need help on bit operations define"
- Reply: Kenneth Brody: "Re: Need help on bit operations define"
- Reply: Michael Mair: "Re: Need help on bit operations define"
- Reply: Dave Hansen: "Re: Need help on bit operations define"
- Reply: Douglas A. Gwyn: "Re: Need help on bit operations define"
- Reply: Felipe Magno de Almeida: "Re: Need help on bit operations define"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]