Changeset 923a7a8 for src/lvec.c


Ignore:
Timestamp:
Nov 26, 2013, 4:44:17 AM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
39a7b26
Parents:
2dbcafa
Message:

src/{fvec,fmat}.c: use memcpy and memset to optimise when possible, add option to disable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lvec.c

    r2dbcafa r923a7a8  
    6767
    6868void lvec_zeros(lvec_t *s) {
     69#if HAVE_MEMCPY_HACKS
     70  memset(s->data, 0, s->length * sizeof(lsmp_t));
     71#else
    6972  lvec_set(s, 0.);
     73#endif
    7074}
    7175
Note: See TracChangeset for help on using the changeset viewer.