Changeset 1453
- Timestamp:
- Aug 10, 2004, 9:27:56 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
collections/psScalar.c (modified) (2 diffs)
-
collections/psScalar.h (modified) (2 diffs)
-
mathtypes/psScalar.c (modified) (2 diffs)
-
mathtypes/psScalar.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psScalar.c
r1440 r1453 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-08- 09 23:34:57 $11 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-10 19:27:47 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 128 128 } 129 129 130 psScalar* psScalarCopy(psScalar *scalar) 131 { 132 psScalar *newScalar = NULL; 133 134 if (scalar == NULL) { 135 psError(__func__, "Null scalar not allowed"); 136 } 137 138 newScalar = psScalarAlloc(scalar->data.C64, scalar->type.type); 139 if (newScalar == NULL) { 140 psAbort(__func__, " : Line %d - Failed to allocate memory", __LINE__); 141 } 142 143 return newScalar; 144 } 145 130 146 void psScalarFree(psScalar* restrict scalar) 131 147 { -
trunk/psLib/src/collections/psScalar.h
r1441 r1453 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08- 09 23:40:55$13 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-10 19:27:56 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 79 79 ); 80 80 81 /** Copy a scalar. 82 * 83 * Uses psLib memory allocation functions to copy a scalar. 84 * 85 * @return void. 86 * 87 */ 88 psScalar* psScalarCopy(psScalar *scalar ///< Scalar to copy. 89 ); 90 81 91 /// @} 82 92 -
trunk/psLib/src/mathtypes/psScalar.c
r1440 r1453 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-08- 09 23:34:57 $11 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-10 19:27:47 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 128 128 } 129 129 130 psScalar* psScalarCopy(psScalar *scalar) 131 { 132 psScalar *newScalar = NULL; 133 134 if (scalar == NULL) { 135 psError(__func__, "Null scalar not allowed"); 136 } 137 138 newScalar = psScalarAlloc(scalar->data.C64, scalar->type.type); 139 if (newScalar == NULL) { 140 psAbort(__func__, " : Line %d - Failed to allocate memory", __LINE__); 141 } 142 143 return newScalar; 144 } 145 130 146 void psScalarFree(psScalar* restrict scalar) 131 147 { -
trunk/psLib/src/mathtypes/psScalar.h
r1441 r1453 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08- 09 23:40:55$13 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-10 19:27:56 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 79 79 ); 80 80 81 /** Copy a scalar. 82 * 83 * Uses psLib memory allocation functions to copy a scalar. 84 * 85 * @return void. 86 * 87 */ 88 psScalar* psScalarCopy(psScalar *scalar ///< Scalar to copy. 89 ); 90 81 91 /// @} 82 92
Note:
See TracChangeset
for help on using the changeset viewer.
