Changeset 800
- Timestamp:
- May 27, 2004, 5:15:04 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
sys/psType.h (modified) (2 diffs)
-
sysUtils/psType.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psType.h
r786 r800 20 20 * @author Ross Harman, MHPCC 21 21 * 22 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $23 * @date $Date: 2004-05-2 6 00:05:17$22 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2004-05-28 03:15:04 $ 24 24 * 25 25 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 57 57 58 58 typedef enum { 59 PS_TYPE_INT8 = 0x 101, ///< Character.60 PS_TYPE_INT16 = 0x 102, ///< Short integer.61 PS_TYPE_INT32 = 0x 104, ///< Integer.62 PS_TYPE_INT64 = 0x 108, ///< Long integer.63 PS_TYPE_UINT8 = 0x 301, ///< Unsigned character.64 PS_TYPE_UINT16 = 0x 302, ///< Unsigned short integer.65 PS_TYPE_UINT32 = 0x 304, ///< Unsigned integer.66 PS_TYPE_UINT64 = 0x 308, ///< Unsigned long integer.67 PS_TYPE_FLOAT = 0x 404, ///< Single-precision Floating point.68 PS_TYPE_DOUBLE = 0x 408, ///< Double-precision floating point.69 PS_TYPE_COMPLEX_FLOAT = 0x 808, ///< Complex numbers consisting of single-precision floating point.70 PS_TYPE_COMPLEX_DOUBLE = 0x 810, ///< 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. 72 72 73 73 // Abbreviated versions of the above types 74 PS_TYPE_S8 = 0x 101, ///< Character.75 PS_TYPE_S16 = 0x 102, ///< Short integer.76 PS_TYPE_S32 = 0x 104, ///< Integer.77 PS_TYPE_S64 = 0x 108, ///< Long integer.78 PS_TYPE_U8 = 0x 301, ///< Unsigned character.79 PS_TYPE_U16 = 0x 302, ///< Unsigned short integer.80 PS_TYPE_U32 = 0x 304, ///< Unsigned integer.81 PS_TYPE_U64 = 0x 308, ///< Unsigned long integer.82 PS_TYPE_F32 = 0x 404, ///< Single-precision Floating point.83 PS_TYPE_F64 = 0x 408, ///< Double-precision floating point.84 PS_TYPE_C32 = 0x 808, ///< Complex numbers consisting of single-precision floating point.85 PS_TYPE_C64 = 0x 810, ///< 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. 87 87 88 88 } psElemType; 89 89 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) 94 94 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) :(x & 0xFF) ) 95 95 -
trunk/psLib/src/sysUtils/psType.h
r786 r800 20 20 * @author Ross Harman, MHPCC 21 21 * 22 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $23 * @date $Date: 2004-05-2 6 00:05:17$22 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2004-05-28 03:15:04 $ 24 24 * 25 25 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 57 57 58 58 typedef enum { 59 PS_TYPE_INT8 = 0x 101, ///< Character.60 PS_TYPE_INT16 = 0x 102, ///< Short integer.61 PS_TYPE_INT32 = 0x 104, ///< Integer.62 PS_TYPE_INT64 = 0x 108, ///< Long integer.63 PS_TYPE_UINT8 = 0x 301, ///< Unsigned character.64 PS_TYPE_UINT16 = 0x 302, ///< Unsigned short integer.65 PS_TYPE_UINT32 = 0x 304, ///< Unsigned integer.66 PS_TYPE_UINT64 = 0x 308, ///< Unsigned long integer.67 PS_TYPE_FLOAT = 0x 404, ///< Single-precision Floating point.68 PS_TYPE_DOUBLE = 0x 408, ///< Double-precision floating point.69 PS_TYPE_COMPLEX_FLOAT = 0x 808, ///< Complex numbers consisting of single-precision floating point.70 PS_TYPE_COMPLEX_DOUBLE = 0x 810, ///< 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. 72 72 73 73 // Abbreviated versions of the above types 74 PS_TYPE_S8 = 0x 101, ///< Character.75 PS_TYPE_S16 = 0x 102, ///< Short integer.76 PS_TYPE_S32 = 0x 104, ///< Integer.77 PS_TYPE_S64 = 0x 108, ///< Long integer.78 PS_TYPE_U8 = 0x 301, ///< Unsigned character.79 PS_TYPE_U16 = 0x 302, ///< Unsigned short integer.80 PS_TYPE_U32 = 0x 304, ///< Unsigned integer.81 PS_TYPE_U64 = 0x 308, ///< Unsigned long integer.82 PS_TYPE_F32 = 0x 404, ///< Single-precision Floating point.83 PS_TYPE_F64 = 0x 408, ///< Double-precision floating point.84 PS_TYPE_C32 = 0x 808, ///< Complex numbers consisting of single-precision floating point.85 PS_TYPE_C64 = 0x 810, ///< 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. 87 87 88 88 } psElemType; 89 89 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) 94 94 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) :(x & 0xFF) ) 95 95
Note:
See TracChangeset
for help on using the changeset viewer.
