Changeset 10a5413
- Timestamp:
- Oct 7, 2009, 6:26:59 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:
- 1b88289
- Parents:
- daa4ca9
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rdaa4ca9 r10a5413 115 115 116 116 dnl Check for header files 117 AC_CHECK_HEADERS([string.h stdlib.h stdio.h math.h errno.h stdarg.h unistd.h signal.h],,)117 AC_CHECK_HEADERS([string.h stdlib.h stdio.h math.h limits.h errno.h stdarg.h unistd.h signal.h],,) 118 118 AC_CHECK_HEADERS(fftw3.h,,AC_MSG_ERROR([Ouch! missing fftw3.h header])) 119 119 AC_ARG_ENABLE(complex, -
src/aubio_priv.h
rdaa4ca9 r10a5413 61 61 #if HAVE_STRING_H 62 62 #include <string.h> 63 #endif 64 65 #if HAVE_LIMITS_H 66 #include <limits.h> // for CHAR_BIT, in C99 standard 63 67 #endif 64 68 -
src/mathutils.c
rdaa4ca9 r10a5413 410 410 } 411 411 412 uint_t 413 aubio_is_power_of_two(uint_t a) { 414 if ((a & a-1) == 0) { 415 return 1; 416 } else { 417 return 0; 418 } 419 } 420 421 uint_t 422 aubio_next_power_of_two(uint_t a) { 423 uint_t i; 424 a--; 425 for (i = 0; i < sizeof(uint_t) * CHAR_BIT; i++ ) { 426 a = a | a >> 1; 427 } 428 return a+1; 429 } 430 412 431 smpl_t 413 432 aubio_db_spl (fvec_t * o) -
src/mathutils.h
rdaa4ca9 r10a5413 317 317 smpl_t aubio_miditofreq (smpl_t midi); 318 318 319 /** return 1 if a is a power of 2, 0 otherwise */ 320 uint_t aubio_is_power_of_two(uint_t a); 321 322 /** return the next power of power of 2 greater than a */ 323 uint_t aubio_next_power_of_two(uint_t a); 324 319 325 /** compute sound pressure level (SPL) in dB 320 326 -
wscript
rdaa4ca9 r10a5413 54 54 conf.check(header_name='math.h') 55 55 conf.check(header_name='string.h') 56 conf.check(header_name='limits.h') 56 57 57 58 # optionally use complex.h
Note: See TracChangeset
for help on using the changeset viewer.