projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88fee8f
)
src/fmat.c: use memset for each columns
author
Paul Brossier
<piem@piem.org>
Thu, 28 Nov 2013 20:49:16 +0000
(15:49 -0500)
committer
Paul Brossier
<piem@piem.org>
Thu, 28 Nov 2013 20:49:16 +0000
(15:49 -0500)
src/fmat.c
patch
|
blob
|
history
diff --git
a/src/fmat.c
b/src/fmat.c
index
8ff00e7
..
7c0e928
100644
(file)
--- a/
src/fmat.c
+++ b/
src/fmat.c
@@
-87,7
+87,10
@@
void fmat_set(fmat_t *s, smpl_t val) {
void fmat_zeros(fmat_t *s) {
#if HAVE_MEMCPY_HACKS
- memset(s->data, 0, s->height * s->length * sizeof(smpl_t));
+ uint_t i;
+ for (i=0; i< s->height; i++) {
+ memset(s->data[i], 0, s->length * sizeof(smpl_t));
+ }
#else
fmat_set(s, 0.);
#endif