Changeset 3671 for trunk/psLib/src/sysUtils
- Timestamp:
- Apr 5, 2005, 3:12:58 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psType.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psType.h
r3381 r3671 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 3-07 20:58:50$12 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-04-06 01:12:58 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 83 83 PS_TYPE_C32 = 0x0808, ///< Complex numbers consisting of single-precision floating point. 84 84 PS_TYPE_C64 = 0x0810, ///< Complex numbers consisting of double-precision floating point. 85 PS_TYPE_BOOL = 0x1301, ///< Boolean. 86 PS_TYPE_PTR = 0x0000 ///< Something else that's not supported for arithmetic. 85 PS_TYPE_BOOL = 0x1301 ///< Boolean. 87 86 } psElemType; 88 87 … … 133 132 #define PS_TYPE_C32_NAME "psC32" 134 133 #define PS_TYPE_C64_NAME "psC64" 135 #define PS_TYPE_PTR_NAME "psPtr"136 134 137 135 #define PS_TYPE_NAME(value,type) \ … … 175 173 case PS_TYPE_C64: \ 176 174 value = PS_TYPE_C64_NAME; \ 177 break; \178 case PS_TYPE_PTR: \179 value = PS_TYPE_PTR_NAME; \180 175 break; \ 181 176 default: \ … … 206 201 #define PS_IS_PSELEMTYPE_BOOL(x) ((x & 0x1000) == 0x1000) 207 202 /// Macro to determine the storage size, in bytes, of the psElemType. 208 #define PSELEMTYPE_SIZEOF(x) ( (x==(PS_TYPE_PTR&0xFFFF)) ? sizeof(psPtr) :(x & 0xFF))203 #define PSELEMTYPE_SIZEOF(x) (x & 0xFF) 209 204 210 205 /** Dimensions of a data type.
Note:
See TracChangeset
for help on using the changeset viewer.
