Changeset c666a18 for src/fmat.c


Ignore:
Timestamp:
Nov 28, 2013, 9:49:16 PM (6 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:
41eff53
Parents:
88fee8f
Message:

src/fmat.c: use memset for each columns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fmat.c

    r88fee8f rc666a18  
    8888void fmat_zeros(fmat_t *s) {
    8989#if HAVE_MEMCPY_HACKS
    90   memset(s->data, 0, s->height * s->length * sizeof(smpl_t));
     90  uint_t i;
     91  for (i=0; i< s->height; i++) {
     92    memset(s->data[i], 0, s->length * sizeof(smpl_t));
     93  }
    9194#else
    9295  fmat_set(s, 0.);
Note: See TracChangeset for help on using the changeset viewer.