Changeset 1426 for trunk/psLib/src/collections/psScalar.h
- Timestamp:
- Aug 9, 2004, 12:44:25 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psScalar.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psScalar.h
r1407 r1426 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-0 7 00:06:06$13 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-09 22:44:25 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 32 32 typedef struct 33 33 { 34 psType type; // /< Type of data.34 psType type; ///< Type of data. 35 35 36 36 union { 37 psU8 U8; // /< Unsigned 8-bit integer data.38 psU16 U16; // /< Unsigned 16-bit integer data.39 psU32 U32; // /< Unsigned 32-bit integer data.40 psU64 U64; // /< Unsigned 64-bit integer data.41 psS8 S8; // /< Signed 8-bit integer data.42 psS16 S16; // /< Signed 16-bit integer data.43 psS32 S32; // /< Signed 32-bit integer data.44 psS64 S64; // /< Signed 64-bit integer data.45 psF32 F32; // /< Single-precision float data.46 psF64 F64; // /< Double-precision float data.47 psC32 C32; // /< Single-precision complex data.48 psC64 C64; // /< Double-precision complex data.49 } data; // /< Union for data types.37 psU8 U8; ///< Unsigned 8-bit integer data. 38 psU16 U16; ///< Unsigned 16-bit integer data. 39 psU32 U32; ///< Unsigned 32-bit integer data. 40 psU64 U64; ///< Unsigned 64-bit integer data. 41 psS8 S8; ///< Signed 8-bit integer data. 42 psS16 S16; ///< Signed 16-bit integer data. 43 psS32 S32; ///< Signed 32-bit integer data. 44 psS64 S64; ///< Signed 64-bit integer data. 45 psF32 F32; ///< Single-precision float data. 46 psF64 F64; ///< Double-precision float data. 47 psC32 C32; ///< Single-precision complex data. 48 psC64 C64; ///< Double-precision complex data. 49 } data; ///< Union for data types. 50 50 } 51 51 psScalar; … … 65 65 * 66 66 */ 67 psScalar *psScalarAlloc(psC64 value, // /< Data to be put into psScalar.68 psElemType dataType // /< Type of data to be held by psScalar.67 psScalar *psScalarAlloc(psC64 value, ///< Data to be put into psScalar. 68 psElemType dataType ///< Type of data to be held by psScalar. 69 69 ); 70 70 … … 76 76 * 77 77 */ 78 void psScalarFree(psScalar * restrict scalar // /< Scalar to free.78 void psScalarFree(psScalar * restrict scalar ///< Scalar to free. 79 79 ); 80 80
Note:
See TracChangeset
for help on using the changeset viewer.
