Changeset 7585822 for src/fmat.c
- Timestamp:
- Apr 24, 2016, 7:00:28 PM (8 years ago)
- 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:
- 81984a7
- Parents:
- 8b2aafd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fmat.c
r8b2aafd r7585822 94 94 95 95 void fmat_zeros(fmat_t *s) { 96 #if HAVE_MEMCPY_HACKS96 #ifdef HAVE_MEMCPY_HACKS 97 97 uint_t i; 98 98 for (i=0; i< s->height; i++) { 99 99 memset(s->data[i], 0, s->length * sizeof(smpl_t)); 100 100 } 101 #else 101 #else /* HAVE_MEMCPY_HACKS */ 102 102 fmat_set(s, 0.); 103 #endif 103 #endif /* HAVE_MEMCPY_HACKS */ 104 104 } 105 105 … … 129 129 void fmat_copy(const fmat_t *s, fmat_t *t) { 130 130 uint_t i; 131 #if !HAVE_MEMCPY_HACKS131 #ifndef HAVE_MEMCPY_HACKS 132 132 uint_t j; 133 #endif 133 #endif /* HAVE_MEMCPY_HACKS */ 134 134 if (s->height != t->height) { 135 135 AUBIO_ERR("trying to copy %d rows to %d rows \n", … … 142 142 return; 143 143 } 144 #if HAVE_MEMCPY_HACKS144 #ifdef HAVE_MEMCPY_HACKS 145 145 for (i=0; i< s->height; i++) { 146 146 memcpy(t->data[i], s->data[i], t->length * sizeof(smpl_t)); 147 147 } 148 #else 148 #else /* HAVE_MEMCPY_HACKS */ 149 149 for (i=0; i< t->height; i++) { 150 150 for (j=0; j< t->length; j++) { … … 152 152 } 153 153 } 154 #endif 154 #endif /* HAVE_MEMCPY_HACKS */ 155 155 } 156 156
Note: See TracChangeset
for help on using the changeset viewer.