Changeset 693 for trunk/psLib/src/sysUtils
- Timestamp:
- May 14, 2004, 2:14:56 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psType.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psType.h
r672 r693 19 19 * @author Ross Harman, MHPCC 20 20 * 21 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $22 * @date $Date: 2004-05-1 3 23:36:27$21 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2004-05-15 00:14:56 $ 23 23 * 24 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 42 42 */ 43 43 typedef enum { 44 PS_TYPE_INT8 = 0x1 1, ///< Character.45 PS_TYPE_INT16 = 0x1 2, ///< Short integer.46 PS_TYPE_INT32 = 0x1 4, ///< Integer.47 PS_TYPE_INT64 = 0x1 8, ///< Long integer.48 PS_TYPE_UINT8 = 0x3 1, ///< Unsigned character.49 PS_TYPE_UINT16 = 0x3 2, ///< Unsigned short integer.50 PS_TYPE_UINT32 = 0x3 4, ///< Unsigned integer.51 PS_TYPE_UINT64 = 0x3 8, ///< Unsigned long integer.52 PS_TYPE_FLOAT = 0x4 4, ///< Single-precision Floating point.53 PS_TYPE_DOUBLE = 0x4 8, ///< Double-precision floating point.54 PS_TYPE_COMPLEX_FLOAT = 0x8 4, ///< Complex numbers consisting of single-precision floating point.55 PS_TYPE_COMPLEX_DOUBLE = 0x8 8, ///< Complex numbers consisting of double-precision floating point.44 PS_TYPE_INT8 = 0x101, ///< Character. 45 PS_TYPE_INT16 = 0x102, ///< Short integer. 46 PS_TYPE_INT32 = 0x104, ///< Integer. 47 PS_TYPE_INT64 = 0x108, ///< Long integer. 48 PS_TYPE_UINT8 = 0x301, ///< Unsigned character. 49 PS_TYPE_UINT16 = 0x302, ///< Unsigned short integer. 50 PS_TYPE_UINT32 = 0x304, ///< Unsigned integer. 51 PS_TYPE_UINT64 = 0x308, ///< Unsigned long integer. 52 PS_TYPE_FLOAT = 0x404, ///< Single-precision Floating point. 53 PS_TYPE_DOUBLE = 0x408, ///< Double-precision floating point. 54 PS_TYPE_COMPLEX_FLOAT = 0x808, ///< Complex numbers consisting of single-precision floating point. 55 PS_TYPE_COMPLEX_DOUBLE = 0x810, ///< Complex numbers consisting of double-precision floating point. 56 56 PS_TYPE_PTR = 0x00, ///< Something else that's not supported for arithmetic.} 57 57 } psElemType; 58 58 59 #define IS_PSELEMTYPE_INT(x) (x & 0x10 == 0x10)60 #define IS_PSELEMTYPE_UNSIGNED(x) (x & 0x20 == 0x20)61 #define IS_PSELEMTYPE_REAL(x) (x & 0x40 == 0x40)62 #define IS_PSELEMTYPE_COMPLEX(x) (x & 0x80 == 0x80)63 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) : (x & 0x 0F) )59 #define IS_PSELEMTYPE_INT(x) (x & 0x100 == 0x100) 60 #define IS_PSELEMTYPE_UNSIGNED(x) (x & 0x200 == 0x200) 61 #define IS_PSELEMTYPE_REAL(x) (x & 0x400 == 0x400) 62 #define IS_PSELEMTYPE_COMPLEX(x) (x & 0x800 == 0x800) 63 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) : (x & 0xFF) ) 64 64 65 65 /** Dimensions of a data type.
Note:
See TracChangeset
for help on using the changeset viewer.
