home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-07-21 | 901 b | 28 lines | [TEXT/ttxt] |
- Boolean Set manipulation
- -------------------------------------
-
- This library provides the ability to perform various operations on 32 bit sets,
- and on a single bit within a set. For speed reasons, most of the routines are
- actually macros.
-
- The use of sets depends on your application. They could represent
- various directions/paths from a room in an adventure, or perhaps an
- object's attributes.
-
- The routines are as follows:
-
- set32_Assign() - define all bits in a set
- set32_Not() - invert all bits in a set
- set32_And() - AND two sets together
- set32_Or() - OR two sets together
- set32_Xor() - Exclusive-OR two sets together
- set32_Tst() - test if any bits are set
- set32_Count() - count how many bits are set
-
- set32_Set1() - set one bit
- set32_Clr1() - clear one bit
- set32_Not1() - invert one bit
- set32_Tst1() - test if a bit is set
- --
- Dale Semchishen
- dale_s@istar.ca