- Timestamp:
- Sep 25, 2009, 11:03:34 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:
- f00088f
- Parents:
- 6f0b8a0
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/aubio_priv.h
r6f0b8a0 r46044ed 125 125 126 126 /* aliases to math.h functions */ 127 #if AUBIO_SINGLE_PRECISION127 #if !HAVE_AUBIO_DOUBLE 128 128 #define EXP expf 129 129 #define COS cosf … … 151 151 152 152 /* aliases to complex.h functions */ 153 #if !defined(AUBIO_SINGLE_PRECISION)|| !defined(HAVE_COMPLEX_H) || defined(WIN32)153 #if HAVE_AUBIO_DOUBLE || !defined(HAVE_COMPLEX_H) || defined(WIN32) 154 154 /* mingw32 does not know about c*f functions */ 155 155 #define EXPC cexp -
src/types.h
r6f0b8a0 r46044ed 34 34 35 35 #ifndef HAVE_AUBIO_DOUBLE 36 /** defined to 1 if aubio is compiled in double precision */ 36 37 #define HAVE_AUBIO_DOUBLE 0 37 38 #endif 38 39 39 #if HAVE_AUBIO_DOUBLE40 #define AUBIO_SINGLE_PRECISION 041 #else42 #define AUBIO_SINGLE_PRECISION 143 #endif44 45 40 /** short sample format (32 or 64 bits) */ 46 #if AUBIO_SINGLE_PRECISION41 #if !HAVE_AUBIO_DOUBLE 47 42 typedef float smpl_t; 43 /** print format for sample in single precision */ 48 44 #define AUBIO_SMPL_FMT "%f" 49 45 #else 50 46 typedef double smpl_t; 47 /** print format for double in single precision */ 51 48 #define AUBIO_SMPL_FMT "%lf" 52 49 #endif 53 50 /** long sample format (64 bits or more) */ 54 #if AUBIO_SINGLE_PRECISION51 #if !HAVE_AUBIO_DOUBLE 55 52 typedef double lsmp_t; 53 /** print format for sample in double precision */ 56 54 #define AUBIO_LSMP_FMT "%lf" 57 55 #else 58 56 typedef long double lsmp_t; 57 /** print format for double in double precision */ 59 58 #define AUBIO_LSMP_FMT "%Lf" 60 59 #endif
Note: See TracChangeset
for help on using the changeset viewer.