Changeset 7581185
- Timestamp:
- Feb 8, 2010, 7:14:12 PM (15 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:
- fc759f3
- Parents:
- d453a4a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
rd453a4a r7581185 442 442 aubio_next_power_of_two (uint_t a) 443 443 { 444 uint_t i; 445 a--; 446 for (i = 0; i < sizeof (uint_t) * CHAR_BIT; i++) { 447 a = a | a >> 1; 448 } 449 return a + 1; 444 uint_t i = 1; 445 while (i < a) i <<= 1; 446 return i; 450 447 } 451 448
Note: See TracChangeset
for help on using the changeset viewer.