IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12609


Ignore:
Timestamp:
Mar 27, 2007, 2:49:33 PM (19 years ago)
Author:
magnier
Message:

added tracing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMathUtils.c

    r12503 r12609  
    33 *  This file contains standard math routines.
    44 *
    5  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-03-20 01:23:40 $
     5 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-03-28 00:49:33 $
    77 *
    88 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6363    long max; \
    6464    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); \
    6767    if (value < bounds[0]) { \
    6868        psTrace("psLib.math", 3, \
     
    8686        \
    8787        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); \
    8990            return(mid); \
    9091        } else if (value < bounds[mid]) { \
     
    9596        mid = ((max+1)+min)/2; \
    9697    } \
    97     psTrace("psLib.math", 4, "---- %s(%ld) end (2) ----\n", __func__, min); \
     98    psTrace("psLib.math", 5, "---- %s(%ld) end (2) ----\n", __func__, min); \
    9899    return(min); \
    99100}
Note: See TracChangeset for help on using the changeset viewer.