IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21076


Ignore:
Timestamp:
Jan 1, 2009, 7:08:40 PM (17 years ago)
Author:
eugene
Message:

use UINTnn_MAX values for PS_NOT_Unn macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081230/psLib/src/math/psConstants.h

    r17035 r21076  
    55 * @author GLG, MHPCC
    66 *
    7  * @version $Revision: 1.96 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2008-03-18 18:25:00 $
     7 * @version $Revision: 1.96.36.1 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2009-01-02 05:08:40 $
    99 *
    1010 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6767
    6868// These defines for bitwise opertaions are necessary to yield results of the proper size (use instead of ~)
    69 #define PS_NOT_U8(A)(UCHAR_MAX-(A)) // Perform bitwise NOT on A which is of type U8
    70 #define PS_NOT_U16(A)(USHORT_MAX-(A)) // Perform bitwaise NOT on A which is of type U16
     69#define PS_NOT_U8(A)(UINT8_MAX-(A)) // Perform bitwise NOT on A which is of type U8
     70#define PS_NOT_U16(A)(UINT16_MAX-(A)) // Perform bitwaise NOT on A which is of type U16
     71#define PS_NOT_U32(A)(UINT32_MAX-(A)) // Perform bitwise NOT on A which is of type U8
     72#define PS_NOT_U64(A)(UINT64_MAX-(A)) // Perform bitwaise NOT on A which is of type U16
    7173
    7274/// @}
Note: See TracChangeset for help on using the changeset viewer.