Changeset 1407 for trunk/psLib/src/collections/psScalar.h
- Timestamp:
- Aug 6, 2004, 2:06:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psScalar.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psScalar.h
r1406 r1407 1 1 2 /** @file psScalar.h 2 3 * … … 10 11 * @author Ross Harman, MHPCC 11 12 * 12 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 6 22:34:05$13 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-07 00:06:06 $ 14 15 * 15 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 17 18 18 19 #ifndef PS_SCALAR_H 19 # define PS_SCALAR_H20 # define PS_SCALAR_H 20 21 21 # include "psType.h"22 # include "psType.h" 22 23 23 24 /// @addtogroup Scalar … … 31 32 typedef struct 32 33 { 33 psType type; ///< Type of data.34 psType type; // /< Type of data. 34 35 35 36 union { 36 psU8 U8; ///< Unsigned 8-bit integer data.37 psU16 U16; ///< Unsigned 16-bit integer data.38 psU32 U32; ///< Unsigned 32-bit integer data.39 psU64 U64; ///< Unsigned 64-bit integer data.40 psS8 S8; ///< Signed 8-bit integer data.41 psS16 S16; ///< Signed 16-bit integer data.42 psS32 S32; ///< Signed 32-bit integer data.43 psS64 S64; ///< Signed 64-bit integer data.44 psF32 F32; ///< Single-precision float data.45 psF64 F64; ///< Double-precision float data.46 psC32 C32; ///< Single-precision complex data.47 psC64 C64; ///< Double-precision complex data.48 } 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. 49 50 } 50 51 psScalar; 51 52 52 53 /*****************************************************************************/ 54 53 55 /* FUNCTION PROTOTYPES */ 56 54 57 /*****************************************************************************/ 55 58 … … 62 65 * 63 66 */ 64 psScalar *psScalarAlloc( 65 psC64 value, ///< Data to be put into psScalar. 66 psElemType dataType ///< Type of data to be held by psScalar. 67 ); 68 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 71 /** Deallocate a scalar. … … 75 76 * 76 77 */ 77 void psScalarFree( 78 psScalar *restrict scalar ///< Scalar to free. 79 ); 78 void psScalarFree(psScalar * restrict scalar // /< Scalar to free. 79 ); 80 80 81 81 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
