projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ce0701
)
src/{f,c}vec.c: remove zeroing since we now use calloc
author
Paul Brossier
<piem@piem.org>
Thu, 17 Nov 2011 01:07:44 +0000
(17:07 -0800)
committer
Paul Brossier
<piem@piem.org>
Thu, 17 Nov 2011 01:07:44 +0000
(17:07 -0800)
src/cvec.c
patch
|
blob
|
history
src/fvec.c
patch
|
blob
|
history
diff --git
a/src/cvec.c
b/src/cvec.c
index b1b31f49a6a00aee7eff2a838b15fe99cd0a919e..825b0345983fc665a1dd28d9fda3ca824296f0c2 100644
(file)
--- 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 e559bfc86fac0c9eba6e10b707359ac0be00c284..345a7f870de84de3bd5b281706ad39565558089a 100644
(file)
--- 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;
}