Changeset 1c24da5


Ignore:
Timestamp:
Nov 17, 2011, 2:07:44 AM (9 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:
d7bce3c
Parents:
7ce0701
Message:

src/{f,c}vec.c: remove zeroing since we now use calloc

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/cvec.c

    r7ce0701 r1c24da5  
    2424cvec_t * new_cvec( uint_t length) {
    2525  cvec_t * s = AUBIO_NEW(cvec_t);
    26   uint_t j;
    2726  s->length = length/2 + 1;
    2827  s->norm = AUBIO_ARRAY(smpl_t,s->length);
    2928  s->phas = AUBIO_ARRAY(smpl_t,s->length);
    30   for (j=0; j< s->length; j++) {
    31     s->norm[j]=0.;
    32     s->phas[j]=0.;
    33   }
    3429  return s;
    3530}
  • src/fvec.c

    r7ce0701 r1c24da5  
    2424fvec_t * new_fvec( uint_t length) {
    2525  fvec_t * s = AUBIO_NEW(fvec_t);
    26   uint_t j;
    2726  s->length = length;
    2827  s->data = AUBIO_ARRAY(smpl_t, s->length);
    29   for (j=0; j< s->length; j++) {
    30     s->data[j]=0.;
    31   }
    3228  return s;
    3329}
Note: See TracChangeset for help on using the changeset viewer.