1 #include "aubio_priv.h"
7 #define AUBIO_OP(OPNAME, OP, TYPE, OBJ) \
8 void TYPE ## _ ## OPNAME (TYPE ## _t *o) \
11 for (j = 0; j < o->length; j++) { \
12 o->OBJ[j] = OP (o->OBJ[j]); \
16 #define AUBIO_OP_C(OPNAME, OP) \
17 AUBIO_OP(OPNAME, OP, fvec, data)
23 AUBIO_OP_C(sqrt, SQRT)
24 AUBIO_OP_C(log10, SAFE_LOG10)
25 AUBIO_OP_C(log, SAFE_LOG)
26 AUBIO_OP_C(floor, FLOOR)
27 AUBIO_OP_C(ceil, CEIL)
28 AUBIO_OP_C(round, ROUND)
30 void fvec_pow (fvec_t *s, smpl_t power)
33 for (j = 0; j < s->length; j++) {
34 s->data[j] = POW(s->data[j], power);