Changeset d4791e5 for src/fmat.c
- Timestamp:
- Jan 3, 2014, 12:47:22 AM (11 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:
- 2e01060
- Parents:
- 89e9e71 (diff), 4fe62ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fmat.c
r89e9e71 rd4791e5 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.