IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2004, 5:38:26 PM (22 years ago)
Author:
eugene
Message:

moved complex array functions inside psMath.h BinaryOp & UnaryOp
simplified BitMask operation function set

File:
1 edited

Legend:

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

    r213 r238  
    1 #if !defined (PS_BIT_MASK_H)
    2 #define PS_BIT_MASK_H
     1# if !defined (PS_BIT_MASK_H)
     2# define PS_BIT_MASK_H
    33
    44/** A bitmask of arbitrary length. */
     
    2020/** Set a bit mask */
    2121psBitMask *
    22 psSetBitMask(psBitMask *outMask,        //!< Output bit mask or NULL
     22psBitMaskSet(psBitMask *outMask,        //!< Output bit mask or NULL
    2323             const psBitMask *myMask,   //!< Input bit mask
    2424             int bit                    //!< Bit to set
     
    2727/** Check a bit mask.  Returns true or false */
    2828int
    29 psCheckBitMask(const psBitMask *checkMask, //!< Bit mask to check
    30                int bit                  //!< Bit to check
     29psBitMaskTest(const psBitMask *checkMask, //!< Bit mask to check
     30              int bit                   //!< Bit to check
    3131    );
    3232
    33 /** OR two bit masks */
     33/** apply the given operator to two bit masks */
    3434psBitMask *
    35 psOrBitMasks(psBitMask *outMask,        //!< Output bit mask or NULL
    36              const psBitMask *restrict inMask1, //!< Input bit mask 1
    37              const psBitMask *restrict inMask2 //!< Input bit mask 2
     35psBitMaskOp(psBitMask *outMask, //!< Output bit mask or NULL
     36            const psBitMask *restrict inMask1,  //!< Input bit mask 1
     37            char *operator,             ///< bit mask operator (AND, OR, XOR)
     38            const psBitMask *restrict inMask2 //!< Input bit mask 2
    3839    );
    3940
    40 /** AND two bit masks */
    41 psBitMask *
    42 psAndBitMasks(psBitMask *outMask,       //!< Output bit mask or NULL
    43              const psBitMask *restrict inMask1, //!< Input bit mask 1
    44              const psBitMask *restrict inMask2 //!< Input bit mask 2
    45     );
    46 
    47 #endif
     41#endif
Note: See TracChangeset for help on using the changeset viewer.