Changeset c17a0ee for src/vecutils.c


Ignore:
Timestamp:
Dec 4, 2009, 1:46:04 AM (10 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:
4621cd6
Parents:
7dec719
Message:

src/vecutils.c: switch to mono

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/vecutils.c

    r7dec719 rc17a0ee  
    99void TYPE ## _ ## OPNAME (TYPE ## _t *o) \
    1010{ \
    11   uint_t i,j; \
    12   for (i = 0; i < o->channels; i++) { \
    13     for (j = 0; j < o->length; j++) { \
    14       o->OBJ[i][j] = OP (o->OBJ[i][j]); \
    15     } \
     11  uint_t j; \
     12  for (j = 0; j < o->length; j++) { \
     13    o->OBJ[j] = OP (o->OBJ[j]); \
    1614  } \
    1715}
     
    3533void fvec_pow (fvec_t *s, smpl_t power)
    3634{
    37   uint_t i,j;
    38   for (i = 0; i < s->channels; i++) {
    39     for (j = 0; j < s->length; j++) {
    40       s->data[i][j] = POW(s->data[i][j], power);
    41     }
     35  uint_t j;
     36  for (j = 0; j < s->length; j++) {
     37    s->data[j] = POW(s->data[j], power);
    4238  }
    4339}
     
    4541void cvec_pow (cvec_t *s, smpl_t power)
    4642{
    47   uint_t i,j;
    48   for (i = 0; i < s->channels; i++) {
    49     for (j = 0; j < s->length; j++) {
    50       s->norm[i][j] = POW(s->norm[i][j], power);
    51     }
     43  uint_t j;
     44  for (j = 0; j < s->length; j++) {
     45    s->norm[j] = POW(s->norm[j], power);
    5246  }
    5347}
Note: See TracChangeset for help on using the changeset viewer.