IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 800


Ignore:
Timestamp:
May 27, 2004, 5:15:04 PM (22 years ago)
Author:
desonia
Message:

added parapheses in macros.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psType.h

    r786 r800  
    2020 *  @author Ross Harman, MHPCC
    2121 *
    22  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    23  *  @date $Date: 2004-05-26 00:05:17 $
     22 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     23 *  @date $Date: 2004-05-28 03:15:04 $
    2424 *
    2525 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5757
    5858typedef enum {
    59     PS_TYPE_INT8             = 0x101,   ///< Character.
    60     PS_TYPE_INT16            = 0x102,   ///< Short integer.
    61     PS_TYPE_INT32            = 0x104,   ///< Integer.
    62     PS_TYPE_INT64            = 0x108,   ///< Long integer.
    63     PS_TYPE_UINT8            = 0x301,   ///< Unsigned character.
    64     PS_TYPE_UINT16           = 0x302,   ///< Unsigned short integer.
    65     PS_TYPE_UINT32           = 0x304,   ///< Unsigned integer.
    66     PS_TYPE_UINT64           = 0x308,   ///< Unsigned long integer.
    67     PS_TYPE_FLOAT            = 0x404,   ///< Single-precision Floating point.
    68     PS_TYPE_DOUBLE           = 0x408,   ///< Double-precision floating point.
    69     PS_TYPE_COMPLEX_FLOAT    = 0x808,   ///< Complex numbers consisting of single-precision floating point.
    70     PS_TYPE_COMPLEX_DOUBLE   = 0x810,   ///< Complex numbers consisting of double-precision floating point.
    71     PS_TYPE_OTHER            = 0x000,   ///< Something else that's not supported for arithmetic.
     59    PS_TYPE_INT8             = 0x0101,   ///< Character.
     60    PS_TYPE_INT16            = 0x0102,   ///< Short integer.
     61    PS_TYPE_INT32            = 0x0104,   ///< Integer.
     62    PS_TYPE_INT64            = 0x0108,   ///< Long integer.
     63    PS_TYPE_UINT8            = 0x0301,   ///< Unsigned character.
     64    PS_TYPE_UINT16           = 0x0302,   ///< Unsigned short integer.
     65    PS_TYPE_UINT32           = 0x0304,   ///< Unsigned integer.
     66    PS_TYPE_UINT64           = 0x0308,   ///< Unsigned long integer.
     67    PS_TYPE_FLOAT            = 0x0404,   ///< Single-precision Floating point.
     68    PS_TYPE_DOUBLE           = 0x0408,   ///< Double-precision floating point.
     69    PS_TYPE_COMPLEX_FLOAT    = 0x0808,   ///< Complex numbers consisting of single-precision floating point.
     70    PS_TYPE_COMPLEX_DOUBLE   = 0x0810,   ///< Complex numbers consisting of double-precision floating point.
     71    PS_TYPE_OTHER            = 0x0000,   ///< Something else that's not supported for arithmetic.
    7272
    7373    // Abbreviated versions of the above types
    74     PS_TYPE_S8               = 0x101,   ///< Character.
    75     PS_TYPE_S16              = 0x102,   ///< Short integer.
    76     PS_TYPE_S32              = 0x104,   ///< Integer.
    77     PS_TYPE_S64              = 0x108,   ///< Long integer.
    78     PS_TYPE_U8               = 0x301,   ///< Unsigned character.
    79     PS_TYPE_U16              = 0x302,   ///< Unsigned short integer.
    80     PS_TYPE_U32              = 0x304,   ///< Unsigned integer.
    81     PS_TYPE_U64              = 0x308,   ///< Unsigned long integer.
    82     PS_TYPE_F32              = 0x404,   ///< Single-precision Floating point.
    83     PS_TYPE_F64              = 0x408,   ///< Double-precision floating point.
    84     PS_TYPE_C32              = 0x808,   ///< Complex numbers consisting of single-precision floating point.
    85     PS_TYPE_C64              = 0x810,   ///< Complex numbers consisting of double-precision floating point.
    86     PS_TYPE_PTR              = 0x000    ///< Something else that's not supported for arithmetic.
     74    PS_TYPE_S8               = 0x0101,   ///< Character.
     75    PS_TYPE_S16              = 0x0102,   ///< Short integer.
     76    PS_TYPE_S32              = 0x0104,   ///< Integer.
     77    PS_TYPE_S64              = 0x0108,   ///< Long integer.
     78    PS_TYPE_U8               = 0x0301,   ///< Unsigned character.
     79    PS_TYPE_U16              = 0x0302,   ///< Unsigned short integer.
     80    PS_TYPE_U32              = 0x0304,   ///< Unsigned integer.
     81    PS_TYPE_U64              = 0x0308,   ///< Unsigned long integer.
     82    PS_TYPE_F32              = 0x0404,   ///< Single-precision Floating point.
     83    PS_TYPE_F64              = 0x0408,   ///< Double-precision floating point.
     84    PS_TYPE_C32              = 0x0808,   ///< Complex numbers consisting of single-precision floating point.
     85    PS_TYPE_C64              = 0x0810,   ///< Complex numbers consisting of double-precision floating point.
     86    PS_TYPE_PTR              = 0x0000    ///< Something else that's not supported for arithmetic.
    8787
    8888} psElemType;
    8989
    90 #define IS_PSELEMTYPE_INT(x) (x & 0x100 == 0x100)
    91 #define IS_PSELEMTYPE_UNSIGNED(x) (x & 0x200 == 0x200)
    92 #define IS_PSELEMTYPE_REAL(x) (x & 0x400 == 0x400)
    93 #define IS_PSELEMTYPE_COMPLEX(x) (x & 0x800 == 0x800)
     90#define IS_PSELEMTYPE_INT(x) ((x & 0x100) == 0x100)
     91#define IS_PSELEMTYPE_UNSIGNED(x) ((x & 0x200) == 0x200)
     92#define IS_PSELEMTYPE_REAL(x) ((x & 0x400) == 0x400)
     93#define IS_PSELEMTYPE_COMPLEX(x) ((x & 0x800) == 0x800)
    9494#define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) :(x & 0xFF) )
    9595
  • trunk/psLib/src/sysUtils/psType.h

    r786 r800  
    2020 *  @author Ross Harman, MHPCC
    2121 *
    22  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    23  *  @date $Date: 2004-05-26 00:05:17 $
     22 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     23 *  @date $Date: 2004-05-28 03:15:04 $
    2424 *
    2525 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5757
    5858typedef enum {
    59     PS_TYPE_INT8             = 0x101,   ///< Character.
    60     PS_TYPE_INT16            = 0x102,   ///< Short integer.
    61     PS_TYPE_INT32            = 0x104,   ///< Integer.
    62     PS_TYPE_INT64            = 0x108,   ///< Long integer.
    63     PS_TYPE_UINT8            = 0x301,   ///< Unsigned character.
    64     PS_TYPE_UINT16           = 0x302,   ///< Unsigned short integer.
    65     PS_TYPE_UINT32           = 0x304,   ///< Unsigned integer.
    66     PS_TYPE_UINT64           = 0x308,   ///< Unsigned long integer.
    67     PS_TYPE_FLOAT            = 0x404,   ///< Single-precision Floating point.
    68     PS_TYPE_DOUBLE           = 0x408,   ///< Double-precision floating point.
    69     PS_TYPE_COMPLEX_FLOAT    = 0x808,   ///< Complex numbers consisting of single-precision floating point.
    70     PS_TYPE_COMPLEX_DOUBLE   = 0x810,   ///< Complex numbers consisting of double-precision floating point.
    71     PS_TYPE_OTHER            = 0x000,   ///< Something else that's not supported for arithmetic.
     59    PS_TYPE_INT8             = 0x0101,   ///< Character.
     60    PS_TYPE_INT16            = 0x0102,   ///< Short integer.
     61    PS_TYPE_INT32            = 0x0104,   ///< Integer.
     62    PS_TYPE_INT64            = 0x0108,   ///< Long integer.
     63    PS_TYPE_UINT8            = 0x0301,   ///< Unsigned character.
     64    PS_TYPE_UINT16           = 0x0302,   ///< Unsigned short integer.
     65    PS_TYPE_UINT32           = 0x0304,   ///< Unsigned integer.
     66    PS_TYPE_UINT64           = 0x0308,   ///< Unsigned long integer.
     67    PS_TYPE_FLOAT            = 0x0404,   ///< Single-precision Floating point.
     68    PS_TYPE_DOUBLE           = 0x0408,   ///< Double-precision floating point.
     69    PS_TYPE_COMPLEX_FLOAT    = 0x0808,   ///< Complex numbers consisting of single-precision floating point.
     70    PS_TYPE_COMPLEX_DOUBLE   = 0x0810,   ///< Complex numbers consisting of double-precision floating point.
     71    PS_TYPE_OTHER            = 0x0000,   ///< Something else that's not supported for arithmetic.
    7272
    7373    // Abbreviated versions of the above types
    74     PS_TYPE_S8               = 0x101,   ///< Character.
    75     PS_TYPE_S16              = 0x102,   ///< Short integer.
    76     PS_TYPE_S32              = 0x104,   ///< Integer.
    77     PS_TYPE_S64              = 0x108,   ///< Long integer.
    78     PS_TYPE_U8               = 0x301,   ///< Unsigned character.
    79     PS_TYPE_U16              = 0x302,   ///< Unsigned short integer.
    80     PS_TYPE_U32              = 0x304,   ///< Unsigned integer.
    81     PS_TYPE_U64              = 0x308,   ///< Unsigned long integer.
    82     PS_TYPE_F32              = 0x404,   ///< Single-precision Floating point.
    83     PS_TYPE_F64              = 0x408,   ///< Double-precision floating point.
    84     PS_TYPE_C32              = 0x808,   ///< Complex numbers consisting of single-precision floating point.
    85     PS_TYPE_C64              = 0x810,   ///< Complex numbers consisting of double-precision floating point.
    86     PS_TYPE_PTR              = 0x000    ///< Something else that's not supported for arithmetic.
     74    PS_TYPE_S8               = 0x0101,   ///< Character.
     75    PS_TYPE_S16              = 0x0102,   ///< Short integer.
     76    PS_TYPE_S32              = 0x0104,   ///< Integer.
     77    PS_TYPE_S64              = 0x0108,   ///< Long integer.
     78    PS_TYPE_U8               = 0x0301,   ///< Unsigned character.
     79    PS_TYPE_U16              = 0x0302,   ///< Unsigned short integer.
     80    PS_TYPE_U32              = 0x0304,   ///< Unsigned integer.
     81    PS_TYPE_U64              = 0x0308,   ///< Unsigned long integer.
     82    PS_TYPE_F32              = 0x0404,   ///< Single-precision Floating point.
     83    PS_TYPE_F64              = 0x0408,   ///< Double-precision floating point.
     84    PS_TYPE_C32              = 0x0808,   ///< Complex numbers consisting of single-precision floating point.
     85    PS_TYPE_C64              = 0x0810,   ///< Complex numbers consisting of double-precision floating point.
     86    PS_TYPE_PTR              = 0x0000    ///< Something else that's not supported for arithmetic.
    8787
    8888} psElemType;
    8989
    90 #define IS_PSELEMTYPE_INT(x) (x & 0x100 == 0x100)
    91 #define IS_PSELEMTYPE_UNSIGNED(x) (x & 0x200 == 0x200)
    92 #define IS_PSELEMTYPE_REAL(x) (x & 0x400 == 0x400)
    93 #define IS_PSELEMTYPE_COMPLEX(x) (x & 0x800 == 0x800)
     90#define IS_PSELEMTYPE_INT(x) ((x & 0x100) == 0x100)
     91#define IS_PSELEMTYPE_UNSIGNED(x) ((x & 0x200) == 0x200)
     92#define IS_PSELEMTYPE_REAL(x) ((x & 0x400) == 0x400)
     93#define IS_PSELEMTYPE_COMPLEX(x) ((x & 0x800) == 0x800)
    9494#define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) :(x & 0xFF) )
    9595
Note: See TracChangeset for help on using the changeset viewer.