IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9593


Ignore:
Timestamp:
Oct 16, 2006, 3:34:45 PM (20 years ago)
Author:
Paul Price
Message:

Moving NOT_U8 and NOT_U16 from psModules, and renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psConstants.h

    r7766 r9593  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.93 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-30 02:20:06 $
     8 *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-10-17 01:34:45 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5757
    5858#define PS_SWAP(X,Y) {double tmp=(X); (X) = (Y); (Y) = tmp;}
     59
     60// These defines for bitwise opertaions are necessary to yield results of the proper size (use instead of ~)
     61#define PS_NOT_U8(A)(UCHAR_MAX-(A)) // Perform bitwise NOT on A which is of type U8
     62#define PS_NOT_U16(A)(USHORT_MAX-(A)) // Perform bitwaise NOT on A which is of type U16
     63
Note: See TracChangeset for help on using the changeset viewer.