IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 10, 2004, 6:00:03 PM (22 years ago)
Author:
Paul Price
Message:

Made bit masks of arbitrary length.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psBitMask.h

    r153 r213  
    22#define PS_BIT_MASK_H
    33
    4 /** Type for a big bitmask.  Set to long int for now. */
    5 typedef long int psBitMask;
     4/** A bitmask of arbitrary length. */
     5typedef struct {
     6    int n;                              //!< Number of chars that form the mask
     7    char *bits;                         //!< The bits
     8} psBitMask;
    69
     10/** Constructor */
     11psBitMask *psBitMaskAlloc(int n         //!< Number of bits required
     12    );
     13
     14/** Destructor */
     15void psBitMaskFree(psBitMask *restrict myMask //!< Bit mask to destroy
     16    );
     17
     18/************************************************************************************************************/
    719
    820/** Set a bit mask */
     
    3345    );
    3446
    35 
    3647#endif
Note: See TracChangeset for help on using the changeset viewer.