diff options
author | Marc G. Fournier | 1996-08-28 01:59:28 +0000 |
---|---|---|
committer | Marc G. Fournier | 1996-08-28 01:59:28 +0000 |
commit | 105409746499657acdffc109db9d343b464bda1f (patch) | |
tree | ad73a9b45b4500ddedb5b7d18edcf90ec7cb35c5 /src/include/utils/bit.h | |
parent | ca405ae4bf50a0074cf6e7ffb4873d5c9a861403 (diff) |
More cleanups of the include files
- centralizing to simplify the -I's required to compile
Diffstat (limited to 'src/include/utils/bit.h')
-rw-r--r-- | src/include/utils/bit.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/include/utils/bit.h b/src/include/utils/bit.h new file mode 100644 index 00000000000..dc190accc6b --- /dev/null +++ b/src/include/utils/bit.h @@ -0,0 +1,39 @@ +/*------------------------------------------------------------------------- + * + * bit.h-- + * Standard bit array definitions. + * + * + * Copyright (c) 1994, Regents of the University of California + * + * $Id: bit.h,v 1.1 1996/08/28 01:58:43 scrappy Exp $ + * + *------------------------------------------------------------------------- + */ +#ifndef BIT_H +#define BIT_H + +typedef bits8 *BitArray; +typedef uint32 BitIndex; + +#define BitsPerByte 8 + +/* + * BitArraySetBit -- + * Sets (to 1) the value of a bit in a bit array. + */ +extern void BitArraySetBit(BitArray bitArray, BitIndex bitIndex); + +/* + * BitArrayClearBit -- + * Clears (to 0) the value of a bit in a bit array. + */ +extern void BitArrayClearBit(BitArray bitArray, BitIndex bitIndex); + +/* + * BitArrayBitIsSet -- + * True iff the bit is set (1) in a bit array. + */ +extern bool BitArrayBitIsSet(BitArray bitArray, BitIndex bitIndex); + +#endif /* BIT_H */ |