- Timestamp:
- Sep 21, 2018, 5:50:03 PM (6 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
- Children:
- fe05d1f
- Parents:
- 5447a26
- Location:
- src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/aubio_priv.h
r5447a26 r630191c 71 71 #endif 72 72 73 #if def HAVE_ACCELERATE73 #if defined(HAVE_ACCELERATE) 74 74 #define HAVE_ATLAS 1 75 #define HAVE_BLAS 1 75 76 #include <Accelerate/Accelerate.h> 76 77 #elif defined(HAVE_ATLAS_CBLAS_H) 78 #elif defined(HAVE_BLAS) 79 #if defined(HAVE_ATLAS_CBLAS_H) 77 80 #define HAVE_ATLAS 1 78 81 #include <atlas/cblas.h> 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 … … 112 120 #endif /* HAVE_ACCELERATE */ 113 121 122 #if defined(HAVE_BLAS) 123 #ifndef HAVE_AUBIO_DOUBLE 114 124 #ifdef HAVE_ATLAS 115 #ifndef HAVE_AUBIO_DOUBLE116 125 #define aubio_catlas_set catlas_sset 126 #endif /* HAVE_ATLAS */ 117 127 #define aubio_cblas_copy cblas_scopy 118 128 #define aubio_cblas_swap cblas_sswap 119 129 #define aubio_cblas_dot cblas_sdot 120 130 #else /* HAVE_AUBIO_DOUBLE */ 131 #ifdef HAVE_ATLAS 121 132 #define aubio_catlas_set catlas_dset 133 #endif /* HAVE_ATLAS */ 122 134 #define aubio_cblas_copy cblas_dcopy 123 135 #define aubio_cblas_swap cblas_dswap 124 136 #define aubio_cblas_dot cblas_ddot 125 137 #endif /* HAVE_AUBIO_DOUBLE */ 126 #endif /* HAVE_ ATLAS */138 #endif /* HAVE_BLAS */ 127 139 128 140 #if defined HAVE_INTEL_IPP -
src/fmat.c
r5447a26 r630191c 161 161 assert(s->length == scale->length); 162 162 #endif 163 #if !defined(HAVE_ACCELERATE) && !defined(HAVE_ ATLAS)163 #if !defined(HAVE_ACCELERATE) && !defined(HAVE_BLAS) 164 164 uint_t j; 165 165 fvec_zeros(output); -
src/fvec.c
r5447a26 r630191c 135 135 #if defined(HAVE_INTEL_IPP) 136 136 aubio_ippsCopy(s->data, t->data, (int)s->length); 137 #elif defined(HAVE_ ATLAS)137 #elif defined(HAVE_BLAS) 138 138 aubio_cblas_copy(s->length, s->data, 1, t->data, 1); 139 139 #elif defined(HAVE_ACCELERATE) -
src/mathutils.c
r5447a26 r630191c 272 272 // if length is odd, middle element is moved to the end 273 273 if (2 * half < s->length) start ++; 274 #ifndef HAVE_ ATLAS274 #ifndef HAVE_BLAS 275 275 for (j = 0; j < half; j++) { 276 276 ELEM_SWAP (s->data[j], s->data[j + start]); … … 292 292 // if length is odd, middle element is moved to the beginning 293 293 if (2 * half < s->length) start ++; 294 #ifndef HAVE_ ATLAS294 #ifndef HAVE_BLAS 295 295 for (j = 0; j < half; j++) { 296 296 ELEM_SWAP (s->data[j], s->data[j + start]); … … 329 329 { 330 330 smpl_t energy = 0.; 331 #ifndef HAVE_ ATLAS331 #ifndef HAVE_BLAS 332 332 uint_t j; 333 333 for (j = 0; j < f->length; j++) {
Note: See TracChangeset
for help on using the changeset viewer.