Changeset 4bf3731
- Timestamp:
- Feb 16, 2016, 6:00:27 PM (9 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:
- a7348ca5
- Parents:
- d04875c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
rd04875c r4bf3731 254 254 fvec_shift (fvec_t * s) 255 255 { 256 uint_t half = s->length / 2, start = half ;256 uint_t half = s->length / 2, start = half, j; 257 257 // if length is odd, middle element is moved to the end 258 258 if (2 * half < s->length) start ++; 259 259 #ifndef HAVE_ATLAS 260 for ( uint_tj = 0; j < half; j++) {260 for (j = 0; j < half; j++) { 261 261 ELEM_SWAP (s->data[j], s->data[j + start]); 262 262 } … … 265 265 #endif 266 266 if (start != half) { 267 for ( uint_tj = 0; j < half; j++) {267 for (j = 0; j < half; j++) { 268 268 ELEM_SWAP (s->data[j + start - 1], s->data[j + start]); 269 269 } … … 274 274 fvec_ishift (fvec_t * s) 275 275 { 276 uint_t half = s->length / 2, start = half ;276 uint_t half = s->length / 2, start = half, j; 277 277 // if length is odd, middle element is moved to the beginning 278 278 if (2 * half < s->length) start ++; 279 279 #ifndef HAVE_ATLAS 280 for ( uint_tj = 0; j < half; j++) {280 for (j = 0; j < half; j++) { 281 281 ELEM_SWAP (s->data[j], s->data[j + start]); 282 282 } … … 285 285 #endif 286 286 if (start != half) { 287 for ( uint_tj = 0; j < half; j++) {287 for (j = 0; j < half; j++) { 288 288 ELEM_SWAP (s->data[half], s->data[j]); 289 289 }
Note: See TracChangeset
for help on using the changeset viewer.