Changeset 2204 for trunk/psLib/test/dataManip/tst_psMinimize05.c
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/dataManip/tst_psMinimize05.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataManip/tst_psMinimize05.c
r2081 r2204 15 15 #define ERROR_TOLERANCE 0.10 16 16 float expectedParm[NUM_PARAMS]; 17 inttestStatus = true;17 psS32 testStatus = true; 18 18 19 19 /***************************************************************************** … … 32 32 float coordData = 0.0; 33 33 float expData = 0.0; 34 inti;34 psS32 i; 35 35 36 36 for (i=0;i<N;i++) { … … 62 62 63 63 64 intt00()65 { 66 intcurrentId = psMemGetId();67 intmemLeaks = 0;68 inti = 0;64 psS32 t00() 65 { 66 psS32 currentId = psMemGetId(); 67 psS32 memLeaks = 0; 68 psS32 i = 0; 69 69 psArray *myCoords; 70 70 psVector *myParams; … … 81 81 myCoords = psArrayAlloc(N); 82 82 for (i=0;i<N;i++) { 83 myCoords->data[i] = (psP TR*) psVectorAlloc(2, PS_TYPE_F32);83 myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32); 84 84 ((psVector *) (myCoords->data[i]))->data.F32[0] = (float) (i+10); 85 85 ((psVector *) (myCoords->data[i]))->data.F32[1] = (float) (i+3); … … 137 137 } 138 138 139 intt01()140 { 141 intcurrentId = psMemGetId();142 intmemLeaks = 0;143 inti = 0;139 psS32 t01() 140 { 141 psS32 currentId = psMemGetId(); 142 psS32 memLeaks = 0; 143 psS32 i = 0; 144 144 psArray *myCoords; 145 145 psVector *myParams; … … 154 154 myCoords = psArrayAlloc(N); 155 155 for (i=0;i<N;i++) { 156 myCoords->data[i] = (psP TR*) psVectorAlloc(2, PS_TYPE_F32);156 myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32); 157 157 ((psVector *) (myCoords->data[i]))->data.F32[0] = (float) (i+10); 158 158 ((psVector *) (myCoords->data[i]))->data.F32[1] = (float) (i+3); … … 208 208 } 209 209 210 intt02()211 { 212 intcurrentId = psMemGetId();213 intmemLeaks = 0;214 inti = 0;210 psS32 t02() 211 { 212 psS32 currentId = psMemGetId(); 213 psS32 memLeaks = 0; 214 psS32 i = 0; 215 215 psArray *myCoords; 216 216 psVector *myParams; … … 227 227 myCoords = psArrayAlloc(N); 228 228 for (i=0;i<N;i++) { 229 myCoords->data[i] = (psP TR*) psVectorAlloc(2, PS_TYPE_F32);229 myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32); 230 230 ((psVector *) (myCoords->data[i]))->data.F32[0] = (float) (i+10); 231 231 ((psVector *) (myCoords->data[i]))->data.F32[1] = (float) (i+3); … … 269 269 } 270 270 271 intmain()271 psS32 main() 272 272 { 273 273 t00();
Note:
See TracChangeset
for help on using the changeset viewer.
