IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2004, 10:29:12 AM (22 years ago)
Author:
gusciora
Message:

I've been unifying the naming conventions for various macros that check
functions parameters for type, size, non-NULL ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMinimize.c

    r2214 r2215  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 20:20:11 $
     11 *  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 20:29:12 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    255255    PS_PTR_CHECK_NULL(y, NULL);
    256256    PS_VECTOR_CHECK_TYPE_F32_OR_F64(y, NULL);
    257     CONVERT_VECTOR_F64_TO_F32(y, y32, y32Static);
     257    PS_VECTOR_CONVERT_F64_TO_F32_STATIC(y, y32, y32Static);
    258258
    259259    // If yErr==NULL, set all errors equal.
    260260    if (yErr == NULL) {
    261         GEN_PERSIST_YERR_VEC_F32(yErr32Static, y->n);
     261        PS_VECTOR_GEN_YERR_STATIC_F32(yErr32Static, y->n);
    262262        yErr32 = yErr32Static;
    263263    } else {
    264264        PS_VECTOR_CHECK_TYPE_F32_OR_F64(yErr, NULL);
    265         CONVERT_VECTOR_F64_TO_F32(yErr, yErr32, yErr32Static);
     265        PS_VECTOR_CONVERT_F64_TO_F32_STATIC(yErr, yErr32, yErr32Static);
    266266    }
    267267
    268268    // If x==NULL, create an x32 vector with x values set to (0:n).
    269269    if (x == NULL) {
    270         GEN_PERSIST_X_INDEX_VEC_F32(x32Static, y->n);
     270        PS_VECTOR_GEN_X_INDEX_STATIC_F32(x32Static, y->n);
    271271        x32 = x32Static;
    272272    } else {
    273273        PS_VECTOR_CHECK_TYPE_F32_OR_F64(x, NULL);
    274         CONVERT_VECTOR_F64_TO_F32(x, x32, x32Static);
     274        PS_VECTOR_CONVERT_F64_TO_F32_STATIC(x, x32, x32Static);
    275275    }
    276276    PS_VECTOR_CHECK_SIZE_EQUAL(x32, y32, NULL);
     
    668668    double fac;
    669669    double sum;
    670     GEN_STATIC_RECYCLED_VECTOR(f, n, PS_TYPE_F64);
     670    PS_VECTOR_GEN_STATIC_RECYCLED(f, n, PS_TYPE_F64);
    671671    psScalar *fScalar;
    672672    psScalar tmpScalar;
     
    866866
    867867    PS_VECTOR_CHECK_TYPE_F32_OR_F64(y, NULL);
    868     CONVERT_VECTOR_F32_TO_F64(y, y64, y64Static);
     868    PS_VECTOR_CONVERT_F32_TO_F64_STATIC(y, y64, y64Static);
    869869
    870870    // If yErr==NULL, set all errors equal.
    871871    if (yErr == NULL) {
    872         GEN_PERSIST_YERR_VEC_F64(yErr64Static, y->n);
     872        PS_VECTOR_GEN_YERR_STATIC_F64(yErr64Static, y->n);
    873873        yErr64 = yErr64Static;
    874874    } else {
    875875        PS_VECTOR_CHECK_TYPE_F32_OR_F64(yErr, NULL);
    876         CONVERT_VECTOR_F32_TO_F64(yErr, yErr64, yErr64Static);
     876        PS_VECTOR_CONVERT_F32_TO_F64_STATIC(yErr, yErr64, yErr64Static);
    877877    }
    878878
    879879    // If x==NULL, create an x64 vector with x values set to (0:n).
    880880    if (x == NULL) {
    881         GEN_PERSIST_X_INDEX_VEC_F64(x64Static, y->n);
     881        PS_VECTOR_GEN_X_INDEX_STATIC_F64(x64Static, y->n);
    882882        if (myPoly->type == PS_POLYNOMIAL_CHEB) {
    883883            p_psNormalizeVector(x64Static);
     
    886886    } else {
    887887        PS_VECTOR_CHECK_TYPE_F32_OR_F64(x, NULL);
    888         CONVERT_VECTOR_F32_TO_F64(x, x64, x64Static);
     888        PS_VECTOR_CONVERT_F32_TO_F64_STATIC(x, x64, x64Static);
    889889    }
    890890    PS_VECTOR_CHECK_SIZE_EQUAL(x64, y64, NULL);
Note: See TracChangeset for help on using the changeset viewer.