Changeset 4991 for trunk/psLib/src/math/psConstants.h
- Timestamp:
- Sep 11, 2005, 12:18:40 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psConstants.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psConstants.h
r4581 r4991 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.7 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 7-20 01:21:13$8 * @version $Revision: 1.76 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-09-11 22:18:40 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 357 357 358 358 #define PS_VECTOR_PRINT_F32(NAME) \ 359 for (int my_i=0;my_i<(NAME)->n;my_i++) { \ 360 printf("%s->data.F32[%d] is %f\n", #NAME, my_i, (NAME)->data.F32[my_i]); \ 361 } \ 362 printf("\n"); \ 359 if (NAME != NULL) { \ 360 for (int my_i=0;my_i<(NAME)->n;my_i++) { \ 361 printf("%s->data.F32[%d] is %f\n", #NAME, my_i, (NAME)->data.F32[my_i]); \ 362 } \ 363 printf("\n"); \ 364 } else {\ 365 printf("MACRO WARNING: vector %s is NULL.\n", #NAME); \ 366 }\ 363 367 364 368 #define PS_VECTOR_PRINT_F64(NAME) \ 365 for (int my_i=0;my_i<(NAME)->n;my_i++) { \ 366 printf("%s->data.F64[%d] is %f\n", #NAME, my_i, (NAME)->data.F64[my_i]); \ 367 } \ 368 printf("\n"); \ 369 369 if (NAME != NULL) { \ 370 for (int my_i=0;my_i<(NAME)->n;my_i++) { \ 371 printf("%s->data.F64[%d] is %f\n", #NAME, my_i, (NAME)->data.F64[my_i]); \ 372 } \ 373 printf("\n"); \ 374 } else {\ 375 printf("MACRO WARNING: vector %s is NULL.\n", #NAME); \ 376 }\ 370 377 371 378 #define PS_VECTOR_CONVERT_F64_TO_F32_STATIC(OLD, NEW_PTR32, NEW_STATIC32) \ … … 742 749 #define PS_SQR(A) \ 743 750 ((A) * (A)) 751 752 # define PS_SWAP(X,Y) {double tmp=(X); (X) = (Y); (Y) = tmp;}
Note:
See TracChangeset
for help on using the changeset viewer.
