Changeset 711
- Timestamp:
- May 17, 2004, 10:59:34 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
image/psImage.h (modified) (2 diffs)
-
mathtypes/psImage.h (modified) (2 diffs)
-
sys/psType.h (modified) (3 diffs)
-
sysUtils/psType.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.h
r700 r711 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-05-1 5 02:10:27$9 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-05-17 20:59:34 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 44 44 45 45 union { 46 uint8_t **ui8; ///< unsigned 8-bit integer data. 47 uint16_t **ui16; ///< unsigned 16-bit integer data. 48 uint32_t **ui32; ///< unsigned 32-bit integer data. 49 int8_t **i8; ///< signed 8-bit integer data. 50 int16_t **i16; ///< signed 16-bit integer data. 51 int32_t **i32; ///< signed 32-bit integer data. 52 float **f32; ///< single-precision float data. 53 double **f64; ///< double-precision float data. 54 complex float **c32; ///< single-precision complex data. 46 psU8 **u8; ///< unsigned 8-bit integer data. 47 psU16 **u16; ///< unsigned 16-bit integer data. 48 psU32 **u32; ///< unsigned 32-bit integer data. 49 psU32 **u64; ///< unsigned 64-bit integer data. 50 psS8 **s8; ///< signed 8-bit integer data. 51 psS16 **s16; ///< signed 16-bit integer data. 52 psS32 **s32; ///< signed 32-bit integer data. 53 psS32 **s64; ///< signed 64-bit integer data. 54 psF32 **f32; ///< single-precision float data. 55 psF64 **f64; ///< double-precision float data. 56 psC32 **c32; ///< single-precision complex data. 57 psC32 **c64; ///< double-precision complex data. 55 58 void **v; ///< void pointers to data 56 59 } data; ///< Union for data types. -
trunk/psLib/src/mathtypes/psImage.h
r700 r711 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-05-1 5 02:10:27$9 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-05-17 20:59:34 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 44 44 45 45 union { 46 uint8_t **ui8; ///< unsigned 8-bit integer data. 47 uint16_t **ui16; ///< unsigned 16-bit integer data. 48 uint32_t **ui32; ///< unsigned 32-bit integer data. 49 int8_t **i8; ///< signed 8-bit integer data. 50 int16_t **i16; ///< signed 16-bit integer data. 51 int32_t **i32; ///< signed 32-bit integer data. 52 float **f32; ///< single-precision float data. 53 double **f64; ///< double-precision float data. 54 complex float **c32; ///< single-precision complex data. 46 psU8 **u8; ///< unsigned 8-bit integer data. 47 psU16 **u16; ///< unsigned 16-bit integer data. 48 psU32 **u32; ///< unsigned 32-bit integer data. 49 psU32 **u64; ///< unsigned 64-bit integer data. 50 psS8 **s8; ///< signed 8-bit integer data. 51 psS16 **s16; ///< signed 16-bit integer data. 52 psS32 **s32; ///< signed 32-bit integer data. 53 psS32 **s64; ///< signed 64-bit integer data. 54 psF32 **f32; ///< single-precision float data. 55 psF64 **f64; ///< double-precision float data. 56 psC32 **c32; ///< single-precision complex data. 57 psC32 **c64; ///< double-precision complex data. 55 58 void **v; ///< void pointers to data 56 59 } data; ///< Union for data types. -
trunk/psLib/src/sys/psType.h
r693 r711 19 19 * @author Ross Harman, MHPCC 20 20 * 21 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $22 * @date $Date: 2004-05-1 5 00:14:56$21 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2004-05-17 20:59:34 $ 23 23 * 24 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 41 41 * 42 42 */ 43 44 typedef uint8_t psU8; ///< 8-bit unsigned int 45 typedef uint16_t psU16; ///< 16-bit unsigned int 46 typedef uint32_t psU32; ///< 32-bit unsigned int 47 typedef uint64_t psU64; ///< 64-bit unsigned int 48 typedef int8_t psS8; ///< 8-bit signed int 49 typedef int16_t psS16; ///< 16-bit signed int 50 typedef int32_t psS32; ///< 32-bit signed int 51 typedef int64_t psS64; ///< 64-bit signed int 52 typedef float psF32; ///< 32-bit floating point 53 typedef double psF64; ///< 64-bit floating point 54 typedef complex float psC32; ///< complex with 32-bit floating point Real and Imagary numbers 55 typedef complex double psC64; ///< complex with 64-bit floating point Real and Imagary numbers 56 43 57 typedef enum { 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 PS_TYPE_PTR = 0x00, ///< Something else that's not supported for arithmetic.}58 PS_TYPE_INT8 = 0x101, ///< Character. 59 PS_TYPE_INT16 = 0x102, ///< Short integer. 60 PS_TYPE_INT32 = 0x104, ///< Integer. 61 PS_TYPE_INT64 = 0x108, ///< Long integer. 62 PS_TYPE_UINT8 = 0x301, ///< Unsigned character. 63 PS_TYPE_UINT16 = 0x302, ///< Unsigned short integer. 64 PS_TYPE_UINT32 = 0x304, ///< Unsigned integer. 65 PS_TYPE_UINT64 = 0x308, ///< Unsigned long integer. 66 PS_TYPE_FLOAT = 0x404, ///< Single-precision Floating point. 67 PS_TYPE_DOUBLE = 0x408, ///< Double-precision floating point. 68 PS_TYPE_COMPLEX_FLOAT = 0x808, ///< Complex numbers consisting of single-precision floating point. 69 PS_TYPE_COMPLEX_DOUBLE = 0x810, ///< Complex numbers consisting of double-precision floating point. 70 PS_TYPE_PTR = 0x000, ///< Something else that's not supported for arithmetic. 57 71 } psElemType; 58 72 … … 61 75 #define IS_PSELEMTYPE_REAL(x) (x & 0x400 == 0x400) 62 76 #define IS_PSELEMTYPE_COMPLEX(x) (x & 0x800 == 0x800) 63 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) : (x & 0xFF) )77 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) :(x & 0xFF) ) 64 78 65 79 /** Dimensions of a data type. 66 80 * 67 * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType 81 * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType 68 82 struct. * 69 83 */ -
trunk/psLib/src/sysUtils/psType.h
r693 r711 19 19 * @author Ross Harman, MHPCC 20 20 * 21 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $22 * @date $Date: 2004-05-1 5 00:14:56$21 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2004-05-17 20:59:34 $ 23 23 * 24 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 41 41 * 42 42 */ 43 44 typedef uint8_t psU8; ///< 8-bit unsigned int 45 typedef uint16_t psU16; ///< 16-bit unsigned int 46 typedef uint32_t psU32; ///< 32-bit unsigned int 47 typedef uint64_t psU64; ///< 64-bit unsigned int 48 typedef int8_t psS8; ///< 8-bit signed int 49 typedef int16_t psS16; ///< 16-bit signed int 50 typedef int32_t psS32; ///< 32-bit signed int 51 typedef int64_t psS64; ///< 64-bit signed int 52 typedef float psF32; ///< 32-bit floating point 53 typedef double psF64; ///< 64-bit floating point 54 typedef complex float psC32; ///< complex with 32-bit floating point Real and Imagary numbers 55 typedef complex double psC64; ///< complex with 64-bit floating point Real and Imagary numbers 56 43 57 typedef enum { 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 PS_TYPE_PTR = 0x00, ///< Something else that's not supported for arithmetic.}58 PS_TYPE_INT8 = 0x101, ///< Character. 59 PS_TYPE_INT16 = 0x102, ///< Short integer. 60 PS_TYPE_INT32 = 0x104, ///< Integer. 61 PS_TYPE_INT64 = 0x108, ///< Long integer. 62 PS_TYPE_UINT8 = 0x301, ///< Unsigned character. 63 PS_TYPE_UINT16 = 0x302, ///< Unsigned short integer. 64 PS_TYPE_UINT32 = 0x304, ///< Unsigned integer. 65 PS_TYPE_UINT64 = 0x308, ///< Unsigned long integer. 66 PS_TYPE_FLOAT = 0x404, ///< Single-precision Floating point. 67 PS_TYPE_DOUBLE = 0x408, ///< Double-precision floating point. 68 PS_TYPE_COMPLEX_FLOAT = 0x808, ///< Complex numbers consisting of single-precision floating point. 69 PS_TYPE_COMPLEX_DOUBLE = 0x810, ///< Complex numbers consisting of double-precision floating point. 70 PS_TYPE_PTR = 0x000, ///< Something else that's not supported for arithmetic. 57 71 } psElemType; 58 72 … … 61 75 #define IS_PSELEMTYPE_REAL(x) (x & 0x400 == 0x400) 62 76 #define IS_PSELEMTYPE_COMPLEX(x) (x & 0x800 == 0x800) 63 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) : (x & 0xFF) )77 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) :(x & 0xFF) ) 64 78 65 79 /** Dimensions of a data type. 66 80 * 67 * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType 81 * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType 68 82 struct. * 69 83 */
Note:
See TracChangeset
for help on using the changeset viewer.
