projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e84f7b9
)
src/aubio_priv.h: use ifndef HAVE_AUBIO_DOUBLE
author
Paul Brossier
<piem@piem.org>
Sat, 30 Apr 2016 01:15:47 +0000
(
03:15
+0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 30 Apr 2016 01:15:47 +0000
(
03:15
+0200)
src/aubio_priv.h
patch
|
blob
|
history
diff --git
a/src/aubio_priv.h
b/src/aubio_priv.h
index
f3562cc
..
5dd8f25
100644
(file)
--- a/
src/aubio_priv.h
+++ b/
src/aubio_priv.h
@@
-76,7
+76,7
@@
#ifdef HAVE_ACCELERATE
#include <Accelerate/Accelerate.h>
#ifdef HAVE_ACCELERATE
#include <Accelerate/Accelerate.h>
-#if
!
HAVE_AUBIO_DOUBLE
+#if
ndef
HAVE_AUBIO_DOUBLE
#define aubio_vDSP_mmov vDSP_mmov
#define aubio_vDSP_vmul vDSP_vmul
#define aubio_vDSP_vfill vDSP_vfill
#define aubio_vDSP_mmov vDSP_mmov
#define aubio_vDSP_vmul vDSP_vmul
#define aubio_vDSP_vfill vDSP_vfill
@@
-102,7
+102,7
@@
#endif /* HAVE_ACCELERATE */
#ifdef HAVE_ATLAS
#endif /* HAVE_ACCELERATE */
#ifdef HAVE_ATLAS
-#if
!
HAVE_AUBIO_DOUBLE
+#if
ndef
HAVE_AUBIO_DOUBLE
#define aubio_catlas_set catlas_sset
#define aubio_cblas_copy cblas_scopy
#define aubio_cblas_swap cblas_sswap
#define aubio_catlas_set catlas_sset
#define aubio_cblas_copy cblas_scopy
#define aubio_cblas_swap cblas_sswap
@@
-198,7
+198,7
@@
typedef enum {
#endif
/* aliases to math.h functions */
#endif
/* aliases to math.h functions */
-#if
!
HAVE_AUBIO_DOUBLE
+#if
ndef
HAVE_AUBIO_DOUBLE
#define EXP expf
#define COS cosf
#define SIN sinf
#define EXP expf
#define COS cosf
#define SIN sinf
@@
-226,7
+226,7
@@
typedef enum {
#define ROUND(x) FLOOR(x+.5)
/* aliases to complex.h functions */
#define ROUND(x) FLOOR(x+.5)
/* aliases to complex.h functions */
-#if
HAVE_AUBIO_DOUBLE
|| !defined(HAVE_COMPLEX_H) || defined(WIN32)
+#if
defined(HAVE_AUBIO_DOUBLE)
|| !defined(HAVE_COMPLEX_H) || defined(WIN32)
/* mingw32 does not know about c*f functions */
#define EXPC cexp
/** complex = CEXPC(complex) */
/* mingw32 does not know about c*f functions */
#define EXPC cexp
/** complex = CEXPC(complex) */