Changeset 8627 for trunk/psLib/src/math/psMathUtils.c
- Timestamp:
- Aug 25, 2006, 6:34:28 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMathUtils.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMathUtils.c
r8245 r8627 3 3 * This file contains standard math routines. 4 4 * 5 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-08- 09 02:26:44$5 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-08-26 04:34:28 $ 7 7 * 8 8 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 58 58 long max; \ 59 59 long mid; \ 60 psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__); \60 psTrace("psLib.math", 4, "---- () begin ----\n"); \ 61 61 /* psTrace("psLib.math", 6, "Determining the bin for: %f\n", x); */\ 62 62 if (value < bounds[0]) { \ 63 63 psLogMsg(__func__, PS_LOG_WARN, \ 64 64 "vectorBinDisect%s(): ordinate %f is outside vector range (%f - %f).", \ 65 #TYPE, value, bounds[0],bounds[numBins-1]); \65 #TYPE, (double)value, (double)bounds[0], (double)bounds[numBins-1]); \ 66 66 return(-2); \ 67 67 } \ … … 69 69 psLogMsg(__func__, PS_LOG_WARN, \ 70 70 "vectorBinDisect%s(): ordinate %f is outside vector range (%f - %f).", \ 71 #TYPE, value, bounds[0],bounds[numBins-1]); \71 #TYPE, (double)value, (double)bounds[0], (double)bounds[numBins-1]); \ 72 72 return(-1); \ 73 73 } \ … … 79 79 \ 80 80 if (value == bounds[mid]) { \ 81 psTrace("psLib.math", 4, "---- %s(% d) end (1) ----\n", __func__, mid); \81 psTrace("psLib.math", 4, "---- %s(%ld) end (1) ----\n", __func__, mid); \ 82 82 return(mid); \ 83 83 } else if (value < bounds[mid]) { \ … … 88 88 mid = ((max+1)+min)/2; \ 89 89 } \ 90 psTrace("psLib.math", 4, "---- %s(% d) end (2) ----\n", __func__, min); \90 psTrace("psLib.math", 4, "---- %s(%ld) end (2) ----\n", __func__, min); \ 91 91 return(min); \ 92 92 }
Note:
See TracChangeset
for help on using the changeset viewer.
