home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / Set 32 / set32.README < prev   
Encoding:
Text File  |  1997-07-21  |  901 b   |  28 lines  |  [TEXT/ttxt]

  1. Boolean Set manipulation
  2. -------------------------------------
  3.  
  4. This library provides the ability to perform various operations on 32 bit sets,
  5. and on a single bit within a set. For speed reasons,  most of the routines are
  6. actually macros.
  7.  
  8. The use of sets depends on your application. They could represent
  9. various directions/paths from a room in an adventure, or perhaps an
  10. object's attributes.
  11.  
  12. The routines are as follows:
  13.  
  14.         set32_Assign()        - define all bits in a set
  15.         set32_Not()            - invert all bits in a set
  16.         set32_And()            - AND two sets together
  17.         set32_Or()            - OR two sets together
  18.         set32_Xor()            - Exclusive-OR two sets together
  19.         set32_Tst()            - test if any bits are set
  20.         set32_Count()        - count how many bits are set
  21.  
  22.         set32_Set1()        - set one bit
  23.         set32_Clr1()        - clear one bit
  24.         set32_Not1()        - invert one bit
  25.         set32_Tst1()        - test if a bit is set
  26. --
  27. Dale Semchishen
  28. dale_s@istar.ca