Changes in src/aubio_priv.h [2ca09bf:096a174]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/aubio_priv.h
r2ca09bf r096a174 75 75 #endif 76 76 77 #if defined(HAVE_BLAS) // --enable-blas=true 78 // check which cblas header we found 77 #if defined(HAVE_ACCELERATE) 78 #define HAVE_ATLAS 1 79 #define HAVE_BLAS 1 80 #include <Accelerate/Accelerate.h> 81 #elif defined(HAVE_ATLAS_CBLAS_H) 82 #elif defined(HAVE_BLAS) 79 83 #if defined(HAVE_ATLAS_CBLAS_H) 80 84 #define HAVE_ATLAS 1 … … 84 88 #elif defined(HAVE_CBLAS_H) 85 89 #include <cblas.h> 86 #elif !defined(HAVE_ACCELERATE) 87 #error "HAVE_BLAS was defined, but no blas header was found" 88 #endif /* end of cblas includes */ 89 #endif 90 91 #if defined(HAVE_ACCELERATE) 92 // include accelerate framework after blas 93 #define HAVE_ATLAS 1 94 #define HAVE_BLAS 1 90 #endif 91 #endif 92 93 #ifdef HAVE_ACCELERATE 95 94 #include <Accelerate/Accelerate.h> 96 97 95 #ifndef HAVE_AUBIO_DOUBLE 98 96 #define aubio_vDSP_mmov vDSP_mmov … … 134 132 #define aubio_cblas_swap cblas_sswap 135 133 #define aubio_cblas_dot cblas_sdot 134 #define aubio_cblas__gemv cblas_sgemv 136 135 #else /* HAVE_AUBIO_DOUBLE */ 137 136 #ifdef HAVE_ATLAS … … 141 140 #define aubio_cblas_swap cblas_dswap 142 141 #define aubio_cblas_dot cblas_ddot 142 #define aubio_cblas__gemv cblas_dgemv 143 143 #endif /* HAVE_AUBIO_DOUBLE */ 144 144 #endif /* HAVE_BLAS */ … … 399 399 #endif /* DEBUG */ 400 400 401 // goto to failure if condition x is not true 402 #define AUBIO_GOTO_FAILURE(x) if (!(x)) goto failure 403 404 #define AUBIO_ASSERT_EQUAL_SHAPE(t1, t2) { \ 405 AUBIO_ASSERT(t1 && t2); \ 406 AUBIO_ASSERT(t1->ndim == t2->ndim); \ 407 uint_t nn; \ 408 for (nn = 0; nn < t1->ndim; nn++) \ 409 AUBIO_ASSERT(t1->shape[nn] == t2->shape[nn]); \ 410 } 411 401 412 #endif /* AUBIO_PRIV_H */
Note: See TracChangeset
for help on using the changeset viewer.