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