Changeset c21acb9 for src/fmat.c
- Timestamp:
- Dec 31, 2013, 12:20:28 AM (10 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:
- 5644069
- Parents:
- fe87823
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fmat.c
rfe87823 rc21acb9 23 23 24 24 fmat_t * new_fmat (uint_t height, uint_t length) { 25 fmat_t * s; 26 uint_t i,j; 25 27 if ((sint_t)length <= 0 || (sint_t)height <= 0 ) { 26 28 return NULL; 27 29 } 28 fmat_t * s = AUBIO_NEW(fmat_t); 29 uint_t i,j; 30 s = AUBIO_NEW(fmat_t); 30 31 s->height = height; 31 32 s->length = length; … … 127 128 128 129 void fmat_copy(fmat_t *s, fmat_t *t) { 130 uint_t i; 131 #if !HAVE_MEMCPY_HACKS 132 uint_t i,j; 133 #endif 129 134 if (s->height != t->height) { 130 135 AUBIO_ERR("trying to copy %d rows to %d rows \n", … … 138 143 } 139 144 #if HAVE_MEMCPY_HACKS 140 uint_t i;141 145 for (i=0; i< s->height; i++) { 142 146 memcpy(t->data[i], s->data[i], t->length * sizeof(smpl_t)); 143 147 } 144 148 #else 145 uint_t i,j;146 149 for (i=0; i< t->height; i++) { 147 150 for (j=0; j< t->length; j++) {
Note: See TracChangeset
for help on using the changeset viewer.