Changeset 1440 for trunk/psLib/src/collections/psVector.c
- Timestamp:
- Aug 9, 2004, 1:34:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psVector.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psVector.c
r1407 r1440 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-08-0 7 00:06:06$11 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-09 23:34:57 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 67 67 68 68 /*****************************************************************************/ 69 static void vectorFree(psVector * restrict psVec);69 static void vectorFree(psVector* restrict psVec); 70 70 71 71 /*****************************************************************************/ … … 74 74 75 75 /*****************************************************************************/ 76 psVector *psVectorAlloc(unsigned int nalloc, psElemType elemType)77 { 78 psVector *psVec = NULL;76 psVector* psVectorAlloc(unsigned int nalloc, psElemType elemType) 77 { 78 psVector* psVec = NULL; 79 79 int elementSize = 0; 80 80 … … 88 88 89 89 // Create vector struct 90 psVec = (psVector *) psAlloc(sizeof(psVector));90 psVec = (psVector* ) psAlloc(sizeof(psVector)); 91 91 p_psMemSetDeallocator(psVec, (psFreeFcn) vectorFree); 92 92 … … 102 102 } 103 103 104 psVector *psVectorRealloc(unsigned int nalloc, psVector* restrict in)104 psVector* psVectorRealloc(unsigned int nalloc, psVector* restrict in) 105 105 { 106 106 int elementSize = 0; … … 130 130 } 131 131 132 psVector *psVectorRecycle(psVector* restrict in, unsigned int nalloc, psElemType type)132 psVector* psVectorRecycle(psVector* restrict in, unsigned int nalloc, psElemType type) 133 133 { 134 134 psElemType elemType; … … 160 160 } 161 161 162 psVector *psVectorSort(psVector * restrict outVector, const psVector* restrict inVector)162 psVector* psVectorSort(psVector* restrict outVector, const psVector* restrict inVector) 163 163 { 164 164 int inN = 0; … … 261 261 } 262 262 263 psVector *psVectorSortIndex(psVector * restrict outVector, const psVector* restrict inVector)263 psVector* psVectorSortIndex(psVector* restrict outVector, const psVector* restrict inVector) 264 264 { 265 265 int inN = 0; … … 270 270 int *outVec = NULL; 271 271 double diff = 0.0f; 272 psVector *tmpVector = NULL;272 psVector* tmpVector = NULL; 273 273 psElemType inType = 0; 274 274 … … 348 348 } 349 349 350 static void vectorFree(psVector * restrict psVec)350 static void vectorFree(psVector* restrict psVec) 351 351 { 352 352 if (psVec == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
