Changeset b155ed03 for src/vecutils.c


Ignore:
Timestamp:
Dec 17, 2013, 4:42:20 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
ad76ce2
Parents:
aa033c2
Message:

src/vecutils.*: remove cvec functions for clarity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/vecutils.c

    raa033c2 rb155ed03  
    1515}
    1616
    17 #define AUBIO_OP_C_AND_F(OPNAME, OP) \
    18   AUBIO_OP(OPNAME, OP, fvec, data) \
    19   AUBIO_OP(norm ## _ ## OPNAME, OP, cvec, norm) \
    20   AUBIO_OP(phas ## _ ## OPNAME, OP, cvec, phas)
     17#define AUBIO_OP_C(OPNAME, OP) \
     18  AUBIO_OP(OPNAME, OP, fvec, data)
    2119
    22 AUBIO_OP_C_AND_F(exp, EXP)
    23 AUBIO_OP_C_AND_F(cos, COS)
    24 AUBIO_OP_C_AND_F(sin, SIN)
    25 AUBIO_OP_C_AND_F(abs, ABS)
    26 AUBIO_OP_C_AND_F(sqrt, SQRT)
    27 AUBIO_OP_C_AND_F(log10, SAFE_LOG10)
    28 AUBIO_OP_C_AND_F(log, SAFE_LOG)
    29 AUBIO_OP_C_AND_F(floor, FLOOR)
    30 AUBIO_OP_C_AND_F(ceil, CEIL)
    31 AUBIO_OP_C_AND_F(round, ROUND)
     20AUBIO_OP_C(exp, EXP)
     21AUBIO_OP_C(cos, COS)
     22AUBIO_OP_C(sin, SIN)
     23AUBIO_OP_C(abs, ABS)
     24AUBIO_OP_C(sqrt, SQRT)
     25AUBIO_OP_C(log10, SAFE_LOG10)
     26AUBIO_OP_C(log, SAFE_LOG)
     27AUBIO_OP_C(floor, FLOOR)
     28AUBIO_OP_C(ceil, CEIL)
     29AUBIO_OP_C(round, ROUND)
    3230
    33 //AUBIO_OP_C_AND_F(pow, POW)
    3431void fvec_pow (fvec_t *s, smpl_t power)
    3532{
     
    3936  }
    4037}
    41 
    42 void cvec_pow (cvec_t *s, smpl_t power)
    43 {
    44   uint_t j;
    45   for (j = 0; j < s->length; j++) {
    46     s->norm[j] = POW(s->norm[j], power);
    47   }
    48 }
    49 
Note: See TracChangeset for help on using the changeset viewer.