Changeset 2218 for trunk/psLib/src/math/psConstants.h
- Timestamp:
- Oct 27, 2004, 11:25:52 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psConstants.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psConstants.h
r2217 r2218 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-10-27 21: 06:30$8 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-10-27 21:25:52 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 36 36 } 37 37 38 #define PS_FLOAT_COMPARE(NAME1, NAME2, RVAL) \ 39 if ((NAME1 - NAME2) < -FLT_EPSILON) { \ 40 psError(__func__,"%s is less than %s.", #NAME1, #NAME2); \ 41 return(RVAL); \ 42 } 43 38 44 39 45 … … 54 60 } 55 61 62 #define PS_PTR_CHECK_SIZE_EQUAL(PTR1, PTR2, RVAL) \ 63 if (PTR1->n != PTR2->n) { \ 64 psError(__func__,"ptr %s has size %d, ptr %s has size %d.", #PTR1, PTR1->n, #PTR2, PTR2->n); \ 65 return(RVAL); \ 66 } 67 68 #define PS_PTR_CHECK_TYPE_EQUAL(PTR1, PTR2, RVAL) \ 69 if (PTR1->type.type != PTR2->type.type) { \ 70 psError(__func__,"ptr %s has type %d, ptr %s has type %d.", #PTR1, PTR1->type.type, #PTR2, PTR2->type.type); \ 71 return(RVAL); \ 72 } 56 73 57 74
Note:
See TracChangeset
for help on using the changeset viewer.
