IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 1:34:58 PM (22 years ago)
Author:
desonia
Message:

cleanup of some indent-induced madness.

File:
1 edited

Legend:

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

    r1407 r1440  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2004-08-07 00:06:06 $
     8*  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2004-08-09 23:34:57 $
    1010*
    1111*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2828static bool p_fftwWisdomImported = false;
    2929
    30 psImage *psImageFFT(psImage * out, const psImage * in, psFftDirection direction)
     30psImage* psImageFFT(psImage* out, const psImage* in, psFftDirection direction)
    3131{
    3232    unsigned int numCols;
     
    9393}
    9494
    95 psImage *psImageReal(psImage * out, const psImage * in)
     95psImage* psImageReal(psImage* out, const psImage* in)
    9696{
    9797    psElemType type;
     
    117117
    118118    if (type == PS_TYPE_C32) {
    119         psF32 *outRow;
    120         psC32 *inRow;
     119        psF32* outRow;
     120        psC32* inRow;
    121121
    122122        out = psImageRecycle(out, numCols, numRows, PS_TYPE_F32);
     
    130130        }
    131131    } else if (type == PS_TYPE_C64) {
    132         psF64 *outRow;
    133         psC64 *inRow;
     132        psF64* outRow;
     133        psC64* inRow;
    134134
    135135        out = psImageRecycle(out, numCols, numRows, PS_TYPE_F64);
     
    151151}
    152152
    153 psImage *psImageImaginary(psImage * out, const psImage * in)
     153psImage* psImageImaginary(psImage* out, const psImage* in)
    154154{
    155155    psElemType type;
     
    177177
    178178    if (type == PS_TYPE_C32) {
    179         psF32 *outRow;
    180         psC32 *inRow;
     179        psF32* outRow;
     180        psC32* inRow;
    181181
    182182        out = psImageRecycle(out, numCols, numRows, PS_TYPE_F32);
     
    190190        }
    191191    } else if (type == PS_TYPE_C64) {
    192         psF64 *outRow;
    193         psC64 *inRow;
     192        psF64* outRow;
     193        psC64* inRow;
    194194
    195195        out = psImageRecycle(out, numCols, numRows, PS_TYPE_F64);
     
    211211}
    212212
    213 psImage *psImageComplex(psImage * out, psImage * real, const psImage * imag)
     213psImage* psImageComplex(psImage* out, psImage* real, const psImage* imag)
    214214{
    215215    psElemType type;
     
    251251
    252252    if (type == PS_TYPE_F32) {
    253         psC32 *outRow;
    254         psF32 *realRow;
    255         psF32 *imagRow;
     253        psC32* outRow;
     254        psF32* realRow;
     255        psF32* imagRow;
    256256
    257257        out = psImageRecycle(out, numCols, numRows, PS_TYPE_C32);
     
    267267        }
    268268    } else if (type == PS_TYPE_F64) {
    269         psC64 *outRow;
    270         psF64 *realRow;
    271         psF64 *imagRow;
     269        psC64* outRow;
     270        psF64* realRow;
     271        psF64* imagRow;
    272272
    273273        out = psImageRecycle(out, numCols, numRows, PS_TYPE_C64);
     
    290290}
    291291
    292 psImage *psImageConjugate(psImage * out, const psImage * in)
     292psImage* psImageConjugate(psImage* out, const psImage* in)
    293293{
    294294    psElemType type;
     
    314314
    315315    if (type == PS_TYPE_C32) {
    316         psC32 *outRow;
    317         psC32 *inRow;
     316        psC32* outRow;
     317        psC32* inRow;
    318318
    319319        out = psImageRecycle(out, numCols, numRows, PS_TYPE_C32);
     
    327327        }
    328328    } else if (type == PS_TYPE_C64) {
    329         psC64 *outRow;
    330         psC64 *inRow;
     329        psC64* outRow;
     330        psC64* inRow;
    331331
    332332        out = psImageRecycle(out, numCols, numRows, PS_TYPE_C64);
     
    348348}
    349349
    350 psImage *psImagePowerSpectrum(psImage * out, const psImage * in)
     350psImage* psImagePowerSpectrum(psImage* out, const psImage* in)
    351351{
    352352    psElemType type;
     
    373373
    374374    if (type == PS_TYPE_C32) {
    375         psF32 *outRow;
    376         psC32 *inRow;
     375        psF32* outRow;
     376        psC32* inRow;
    377377        psF32 real;
    378378        psF32 imag;
     
    390390        }
    391391    } else if (type == PS_TYPE_C64) {
    392         psF64 *outRow;
    393         psC64 *inRow;
     392        psF64* outRow;
     393        psC64* inRow;
    394394        psF64 real;
    395395        psF64 imag;
     
    418418/************************************** Vector Functions ***************************************/
    419419
    420 psVector *psVectorFFT(psVector * out, const psVector * in, psFftDirection direction)
     420psVector* psVectorFFT(psVector* out, const psVector* in, psFftDirection direction)
    421421{
    422422    unsigned int numElements;
     
    464464    if (type == PS_TYPE_F32) {
    465465        // need to convert to complex
    466         psC32 *outVec = out->data.C32;
    467         psF32 *inVec = in->data.F32;
     466        psC32* outVec = out->data.C32;
     467        psF32* inVec = in->data.F32;
    468468
    469469        for (unsigned int i = 0; i < numElements; i++) {
     
    471471        }
    472472    } else {
    473         psC32 *outVec = out->data.C32;
    474         psC32 *inVec = in->data.C32;
     473        psC32* outVec = out->data.C32;
     474        psC32* inVec = in->data.C32;
    475475
    476476        for (unsigned int i = 0; i < numElements; i++) {
     
    498498}
    499499
    500 psVector *psVectorReal(psVector * out, const psVector * in)
     500psVector* psVectorReal(psVector* out, const psVector* in)
    501501{
    502502    psElemType type;
     
    523523
    524524    if (type == PS_TYPE_C32) {
    525         psF32 *outVec;
    526         psC32 *inVec = in->data.C32;
     525        psF32* outVec;
     526        psC32* inVec = in->data.C32;
    527527
    528528        out = psVectorRecycle(out, numElements, PS_TYPE_F32);
     
    542542}
    543543
    544 psVector *psVectorImaginary(psVector * out, const psVector * in)
     544psVector* psVectorImaginary(psVector* out, const psVector* in)
    545545{
    546546    psElemType type;
     
    567567
    568568    if (type == PS_TYPE_C32) {
    569         psF32 *outVec;
    570         psC32 *inVec = in->data.C32;
     569        psF32* outVec;
     570        psC32* inVec = in->data.C32;
    571571
    572572        out = psVectorRecycle(out, numElements, PS_TYPE_F32);
     
    586586}
    587587
    588 psVector *psVectorComplex(psVector * out, psVector * real, const psVector * imag)
     588psVector* psVectorComplex(psVector* out, psVector* real, const psVector* imag)
    589589{
    590590    psElemType type;
     
    616616
    617617    if (type == PS_TYPE_F32) {
    618         psC32 *outVec;
    619         psF32 *realVec = real->data.F32;
    620         psF32 *imagVec = imag->data.F32;
     618        psC32* outVec;
     619        psF32* realVec = real->data.F32;
     620        psF32* imagVec = imag->data.F32;
    621621
    622622        out = psVectorRecycle(out, numElements, PS_TYPE_C32);
     
    636636}
    637637
    638 psVector *psVectorConjugate(psVector * out, const psVector * in)
     638psVector* psVectorConjugate(psVector* out, const psVector* in)
    639639{
    640640    psElemType type;
     
    662662
    663663    if (type == PS_TYPE_C32) {
    664         psC32 *outVec;
    665         psC32 *inVec = in->data.C32;
     664        psC32* outVec;
     665        psC32* inVec = in->data.C32;
    666666
    667667        out = psVectorRecycle(out, numElements, PS_TYPE_C32);
     
    681681}
    682682
    683 psVector *psVectorPowerSpectrum(psVector * out, const psVector * in)
     683psVector* psVectorPowerSpectrum(psVector* out, const psVector* in)
    684684{
    685685    psElemType type;
     
    708708
    709709    if (type == PS_TYPE_C32) {
    710         psF32 *outVec;
    711         psC32 *inVec = in->data.C32;
     710        psF32* outVec;
     711        psC32* inVec = in->data.C32;
    712712        psF32 inAbs1;
    713713        psF32 inAbs2;
Note: See TracChangeset for help on using the changeset viewer.