IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 19, 2005, 4:43:53 PM (21 years ago)
Author:
drobbin
Message:

added psLogGet fxns and updated spline functions for unsigned int compatability

File:
1 edited

Legend:

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

    r5070 r5072  
    77*  splines.
    88*
    9 *  @version $Revision: 1.125 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2005-09-19 22:50:28 $
     9*  @version $Revision: 1.126 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2005-09-20 02:43:53 $
    1111*
    1212*
     
    4343/*****************************************************************************/
    4444static void spline1DFree(psSpline1D *tmpSpline);
    45 static unsigned int vectorBinDisectF32(psF32 *bins,psS32 numBins,psF32 x);
    46 static unsigned int vectorBinDisectS32(psS32 *bins,psS32 numBins,psS32 x);
     45static unsigned int vectorBinDisectF32(psF32 *bins,unsigned int numBins,psF32 x);
     46static unsigned int vectorBinDisectS32(psS32 *bins,unsigned int numBins,psS32 x);
    4747
    4848/*****************************************************************************/
     
    113113    \
    114114    psTrace(".psLib.dataManip.psSpline.fullInterpolate1D##TYPE", 4, \
    115             "---- fullInterpolate1D##TYPE() begin (%d-order at x=%f) (%d data points)----\n", n-1, x, n); \
     115            "---- fullInterpolate1D##TYPE() begin (%u-order at x=%f) (%d data points)----\n", n-1, x, n); \
    116116    \
    117117    for (i=0;i<n;i++) { \
     
    123123        p->data.TYPE[i] = range[i]; \
    124124        psTrace(".psLib.dataManip.psSpline.fullInterpolate1D##TYPE", 6, \
    125                 "p->data.TYPE[%d] is %f\n", i, p->data.TYPE[i]); \
     125                "p->data.TYPE[%u] is %f\n", i, p->data.TYPE[i]); \
    126126        \
    127127    } \
     
    140140             */ \
    141141            psTrace(".psLib.dataManip.psSpline.fullInterpolate1D##TYPE", 6, \
    142                     "p->data.TYPE[%d] is %f\n", i, p->data.TYPE[i]); \
     142                    "p->data.TYPE[%u] is %f\n", i, p->data.TYPE[i]); \
    143143        } \
    144144    } \
     
    841841#define FUNC_MACRO_VECTOR_BIN_DISECT(TYPE) \
    842842static unsigned int vectorBinDisect##TYPE(ps##TYPE *bins, \
    843         psS32 numBins, \
     843        unsigned int numBins, \
    844844        ps##TYPE x) \
    845845{ \
    846     psS32 min; \
    847     psS32 max; \
    848     psS32 mid; \
     846    unsigned int min; \
     847    unsigned int max; \
     848    unsigned int mid; \
    849849    \
    850850    psTrace(".psLib.dataManip.psSpline.vectorBinDisect##TYPE", 4, \
     
    871871    while (min != max) { \
    872872        psTrace(".psLib.dataManip.psSpline.vectorBinDisect##TYPE", 4, \
    873                 "(min, mid, max) is (%d, %d, %d): (x, bins) is (%f, %f)\n", \
     873                "(min, mid, max) is (%u, %u, %u): (x, bins) is (%f, %f)\n", \
    874874                min, mid, max, x, bins[mid]); \
    875875        \
    876876        if (x == bins[mid]) { \
    877877            psTrace(".psLib.dataManip.psSpline.vectorBinDisect##TYPE", 4, \
    878                     "---- Exiting vectorBinDisect##TYPE(): bin %d\n", mid); \
     878                    "---- Exiting vectorBinDisect##TYPE(): bin %u\n", mid); \
    879879            return(mid); \
    880880        } else if (x < bins[mid]) { \
     
    887887    \
    888888    psTrace(".psLib.dataManip.psSpline.vectorBinDisect##TYPE", 4, \
    889             "---- Exiting vectorBinDisect##TYPE(): bin %d\n", min); \
     889            "---- Exiting vectorBinDisect##TYPE(): bin %u\n", min); \
    890890    return(min); \
    891891} \
Note: See TracChangeset for help on using the changeset viewer.