Re: Adding Mob Action Bitvectors

From: Wout Mertens (Wout.Mertens@rug.ac.be)
Date: 04/10/96


On Sat, 6 Apr 1996, Michael Buselli wrote:

>      Sorry, but I believe the code you gave below to be incorrect.  Here's
> what you should do:
> 
> #define eIS_SET(bitvector, pos)  \
>         ((bitvector)[(pos) / 32] &  (1 << ((pos) % 32)))
> #define eSET_BIT(bitvector, pos) \
>         ((bitvector)[(pos) / 32] |= (1 << ((pos) % 32)))

Uh.. Correct. Woops...
Ah well...

Gekke Eekhoorn of BUG.



This archive was generated by hypermail 2b30 : 12/18/00 PST