Changeset 633400d for src/aubio_priv.h
- Timestamp:
- Dec 5, 2018, 10:34:39 PM (5 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
- Children:
- 283a619a
- Parents:
- 5b46bc3 (diff), f19db54 (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/aubio_priv.h
r5b46bc3 r633400d 34 34 */ 35 35 36 #ifdef HAVE_CONFIG_H 36 37 #include "config.h" 38 #endif 37 39 38 40 #ifdef HAVE_STDLIB_H … … 69 71 #endif 70 72 71 #if def HAVE_ACCELERATE73 #if defined(HAVE_ACCELERATE) 72 74 #define HAVE_ATLAS 1 75 #define HAVE_BLAS 1 73 76 #include <Accelerate/Accelerate.h> 74 77 #elif defined(HAVE_ATLAS_CBLAS_H) 78 #elif defined(HAVE_BLAS) 79 #if defined(HAVE_ATLAS_CBLAS_H) 75 80 #define HAVE_ATLAS 1 76 81 #include <atlas/cblas.h> 77 #else 78 #undef HAVE_ATLAS 82 #elif defined(HAVE_OPENBLAS_CBLAS_H) 83 #include <openblas/cblas.h> 84 #elif defined(HAVE_CBLAS_H) 85 #include <cblas.h> 86 #endif 79 87 #endif 80 88 … … 84 92 #define aubio_vDSP_mmov vDSP_mmov 85 93 #define aubio_vDSP_vmul vDSP_vmul 94 #define aubio_vDSP_vsmul vDSP_vsmul 95 #define aubio_vDSP_vsadd vDSP_vsadd 86 96 #define aubio_vDSP_vfill vDSP_vfill 87 97 #define aubio_vDSP_meanv vDSP_meanv … … 92 102 #define aubio_vDSP_minvi vDSP_minvi 93 103 #define aubio_vDSP_dotpr vDSP_dotpr 104 #define aubio_vDSP_vclr vDSP_vclr 94 105 #else /* HAVE_AUBIO_DOUBLE */ 95 106 #define aubio_vDSP_mmov vDSP_mmovD 96 107 #define aubio_vDSP_vmul vDSP_vmulD 108 #define aubio_vDSP_vsmul vDSP_vsmulD 109 #define aubio_vDSP_vsadd vDSP_vsaddD 97 110 #define aubio_vDSP_vfill vDSP_vfillD 98 111 #define aubio_vDSP_meanv vDSP_meanvD … … 103 116 #define aubio_vDSP_minvi vDSP_minviD 104 117 #define aubio_vDSP_dotpr vDSP_dotprD 118 #define aubio_vDSP_vclr vDSP_vclrD 105 119 #endif /* HAVE_AUBIO_DOUBLE */ 106 120 #endif /* HAVE_ACCELERATE */ 107 121 122 #if defined(HAVE_BLAS) 123 #ifndef HAVE_AUBIO_DOUBLE 108 124 #ifdef HAVE_ATLAS 109 #ifndef HAVE_AUBIO_DOUBLE110 125 #define aubio_catlas_set catlas_sset 126 #endif /* HAVE_ATLAS */ 111 127 #define aubio_cblas_copy cblas_scopy 112 128 #define aubio_cblas_swap cblas_sswap 113 129 #define aubio_cblas_dot cblas_sdot 114 130 #else /* HAVE_AUBIO_DOUBLE */ 131 #ifdef HAVE_ATLAS 115 132 #define aubio_catlas_set catlas_dset 133 #endif /* HAVE_ATLAS */ 116 134 #define aubio_cblas_copy cblas_dcopy 117 135 #define aubio_cblas_swap cblas_dswap 118 136 #define aubio_cblas_dot cblas_ddot 119 137 #endif /* HAVE_AUBIO_DOUBLE */ 120 #endif /* HAVE_ATLAS */ 121 122 #if !defined(HAVE_MEMCPY_HACKS) && !defined(HAVE_ACCELERATE) && !defined(HAVE_ATLAS) 138 #endif /* HAVE_BLAS */ 139 140 #if defined HAVE_INTEL_IPP 141 #include <ippcore.h> 142 #include <ippvm.h> 143 #include <ipps.h> 144 #ifndef HAVE_AUBIO_DOUBLE 145 #define aubio_ippsSet ippsSet_32f 146 #define aubio_ippsZero ippsZero_32f 147 #define aubio_ippsCopy ippsCopy_32f 148 #define aubio_ippsMul ippsMul_32f 149 #define aubio_ippsMulC ippsMulC_32f 150 #define aubio_ippsAddC ippsAddC_32f 151 #define aubio_ippsLn ippsLn_32f_A21 152 #define aubio_ippsMean(a,b,c) ippsMean_32f(a, b, c, ippAlgHintFast) 153 #define aubio_ippsSum(a,b,c) ippsSum_32f(a, b, c, ippAlgHintFast) 154 #define aubio_ippsMax ippsMax_32f 155 #define aubio_ippsMin ippsMin_32f 156 #else /* HAVE_AUBIO_DOUBLE */ 157 #define aubio_ippsSet ippsSet_64f 158 #define aubio_ippsZero ippsZero_64f 159 #define aubio_ippsCopy ippsCopy_64f 160 #define aubio_ippsMul ippsMul_64f 161 #define aubio_ippsMulC ippsMulC_64f 162 #define aubio_ippsAddC ippsAddC_64f 163 #define aubio_ippsLn ippsLn_64f_A26 164 #define aubio_ippsMean ippsMean_64f 165 #define aubio_ippsSum ippsSum_64f 166 #define aubio_ippsMax ippsMax_64f 167 #define aubio_ippsMin ippsMin_64f 168 #endif /* HAVE_AUBIO_DOUBLE */ 169 #endif 170 171 #if !defined(HAVE_MEMCPY_HACKS) && !defined(HAVE_ACCELERATE) && !defined(HAVE_ATLAS) && !defined(HAVE_INTEL_IPP) 123 172 #define HAVE_NOOPT 1 124 #else125 #undef HAVE_NOOPT126 173 #endif 127 174 … … 182 229 #ifdef HAVE_C99_VARARGS_MACROS 183 230 #define AUBIO_ERR(...) aubio_log(AUBIO_LOG_ERR, "AUBIO ERROR: " __VA_ARGS__) 231 #define AUBIO_INF(...) aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " __VA_ARGS__) 184 232 #define AUBIO_MSG(...) aubio_log(AUBIO_LOG_MSG, __VA_ARGS__) 185 233 #define AUBIO_DBG(...) aubio_log(AUBIO_LOG_DBG, __VA_ARGS__) 186 234 #define AUBIO_WRN(...) aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " __VA_ARGS__) 187 235 #else 188 #define AUBIO_ERR(format, args...) aubio_log(stderr, "AUBIO ERROR: " format , ##args) 189 #define AUBIO_MSG(format, args...) aubio_log(stdout, format , ##args) 190 #define AUBIO_DBG(format, args...) aubio_log(stderr, format , ##args) 191 #define AUBIO_WRN(format, args...) aubio_log(stderr, "AUBIO WARNING: " format, ##args) 236 #define AUBIO_ERR(format, args...) aubio_log(AUBIO_LOG_ERR, "AUBIO ERROR: " format , ##args) 237 #define AUBIO_INF(format, args...) aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " format , ##args) 238 #define AUBIO_MSG(format, args...) aubio_log(AUBIO_LOG_MSG, format , ##args) 239 #define AUBIO_DBG(format, args...) aubio_log(AUBIO_LOG_DBG, format , ##args) 240 #define AUBIO_WRN(format, args...) aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " format, ##args) 192 241 #endif 193 242 … … 196 245 #define AUBIO_QUIT(_s) exit(_s) 197 246 #define AUBIO_SPRINTF sprintf 247 248 #define AUBIO_MAX_SAMPLERATE (192000*8) 249 #define AUBIO_MAX_CHANNELS 1024 198 250 199 251 /* pi and 2*pi */ … … 221 273 #define FLOOR floorf 222 274 #define CEIL ceilf 275 #define ATAN atanf 223 276 #define ATAN2 atan2f 224 277 #else … … 233 286 #define FLOOR floor 234 287 #define CEIL ceil 288 #define ATAN atan 235 289 #define ATAN2 atan2 236 290 #endif
Note: See TracChangeset
for help on using the changeset viewer.