From: Paul Brossier Date: Thu, 17 Nov 2011 01:07:44 +0000 (-0800) Subject: src/{f,c}vec.c: remove zeroing since we now use calloc X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1c24da5336007750b302f3952f398fac939ddbff;p=aubio.git src/{f,c}vec.c: remove zeroing since we now use calloc --- diff --git a/src/cvec.c b/src/cvec.c index b1b31f49..825b0345 100644 --- a/src/cvec.c +++ b/src/cvec.c @@ -23,14 +23,9 @@ cvec_t * new_cvec( uint_t length) { cvec_t * s = AUBIO_NEW(cvec_t); - uint_t j; s->length = length/2 + 1; s->norm = AUBIO_ARRAY(smpl_t,s->length); s->phas = AUBIO_ARRAY(smpl_t,s->length); - for (j=0; j< s->length; j++) { - s->norm[j]=0.; - s->phas[j]=0.; - } return s; } diff --git a/src/fvec.c b/src/fvec.c index e559bfc8..345a7f87 100644 --- a/src/fvec.c +++ b/src/fvec.c @@ -23,12 +23,8 @@ fvec_t * new_fvec( uint_t length) { fvec_t * s = AUBIO_NEW(fvec_t); - uint_t j; s->length = length; s->data = AUBIO_ARRAY(smpl_t, s->length); - for (j=0; j< s->length; j++) { - s->data[j]=0.; - } return s; }