Changeset 344 for trunk/archive/pslib/include/psBitMask.h
- Timestamp:
- Mar 31, 2004, 5:01:04 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psBitMask.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psBitMask.h
r257 r344 9 9 /** A bitmask of arbitrary length. */ 10 10 typedef struct { 11 int n; // !< Number of chars that form the mask12 char *bits; // !< The bits11 int n; ///< Number of chars that form the mask 12 char *bits; ///< The bits 13 13 } psBitMask; 14 14 … … 19 19 20 20 /** Constructor */ 21 psBitMask *psBitMaskAlloc(int n // !< Number of bits required21 psBitMask *psBitMaskAlloc(int n ///< Number of bits required 22 22 ); 23 23 24 24 /** Destructor */ 25 void psBitMaskFree(psBitMask *restrict myMask // !< Bit mask to destroy25 void psBitMaskFree(psBitMask *restrict myMask ///< Bit mask to destroy 26 26 ); 27 27 … … 30 30 /** Set a bit mask */ 31 31 psBitMask * 32 psBitMaskSet(psBitMask *outMask, // !< Output bit mask or NULL33 const psBitMask *myMask, // !< Input bit mask34 int bit // !< Bit to set32 psBitMaskSet(psBitMask *outMask, ///< Output bit mask or NULL 33 const psBitMask *myMask, ///< Input bit mask 34 int bit ///< Bit to set 35 35 ); 36 36 37 37 /** Check a bit mask. Returns true or false */ 38 38 int 39 psBitMaskTest(const psBitMask *checkMask, // !< Bit mask to check40 int bit // !< Bit to check39 psBitMaskTest(const psBitMask *checkMask, ///< Bit mask to check 40 int bit ///< Bit to check 41 41 ); 42 42 43 43 /** apply the given operator to two bit masks */ 44 44 psBitMask * 45 psBitMaskOp(psBitMask *outMask, // !< Output bit mask or NULL46 const psBitMask *restrict inMask1, // !< Input bit mask 147 char *operator, // !< bit mask operator (AND, OR, XOR)48 const psBitMask *restrict inMask2 // !< Input bit mask 245 psBitMaskOp(psBitMask *outMask, ///< Output bit mask or NULL 46 const psBitMask *restrict inMask1, ///< Input bit mask 1 47 char *operator, ///< bit mask operator (AND, OR, XOR) 48 const psBitMask *restrict inMask2 ///< Input bit mask 2 49 49 ); 50 50
Note:
See TracChangeset
for help on using the changeset viewer.
