Changeset 12609
- Timestamp:
- Mar 27, 2007, 2:49:33 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMathUtils.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMathUtils.c
r12503 r12609 3 3 * This file contains standard math routines. 4 4 * 5 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-03-2 0 01:23:40$5 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-03-28 00:49:33 $ 7 7 * 8 8 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 63 63 long max; \ 64 64 long mid; \ 65 psTrace("psLib.math", 4, "---- () begin ----\n"); \66 /* psTrace("psLib.math", 6, "Determining the bin for: %f\n", x); */\65 psTrace("psLib.math", 5, "---- () begin ----\n"); \ 66 psTrace("psLib.math", 4, "Determining the bin for: %f\n", (float) value); \ 67 67 if (value < bounds[0]) { \ 68 68 psTrace("psLib.math", 3, \ … … 86 86 \ 87 87 if (value == bounds[mid]) { \ 88 psTrace("psLib.math", 4, "---- %s(%ld) end (1) ----\n", __func__, mid); \ 88 psTrace("psLib.math", 4, "found %ld\n", mid); \ 89 psTrace("psLib.math", 5, "---- %s(%ld) end (1) ----\n", __func__, mid); \ 89 90 return(mid); \ 90 91 } else if (value < bounds[mid]) { \ … … 95 96 mid = ((max+1)+min)/2; \ 96 97 } \ 97 psTrace("psLib.math", 4, "---- %s(%ld) end (2) ----\n", __func__, min); \98 psTrace("psLib.math", 5, "---- %s(%ld) end (2) ----\n", __func__, min); \ 98 99 return(min); \ 99 100 }
Note:
See TracChangeset
for help on using the changeset viewer.
