Use Accelerate header; select old vvfabf only if OSX is actually a target (as well as if it's an old version)
This commit is contained in:
@@ -33,8 +33,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_VDSP
|
#ifdef HAVE_VDSP
|
||||||
#include <vecLib/vDSP.h>
|
#include <Accelerate/Accelerate.h>
|
||||||
#include <vecLib/vForce.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
@@ -674,7 +673,7 @@ inline void v_abs(float *const R__ dst,
|
|||||||
const int count)
|
const int count)
|
||||||
{
|
{
|
||||||
float tmp[count];
|
float tmp[count];
|
||||||
#if (MACOSX_DEPLOYMENT_TARGET <= 1070 && MAC_OS_X_VERSION_MIN_REQUIRED <= 1070)
|
#if (defined(MACOSX_DEPLOYMENT_TARGET) && MACOSX_DEPLOYMENT_TARGET <= 1070 && MAC_OS_X_VERSION_MIN_REQUIRED <= 1070)
|
||||||
vvfabf(tmp, dst, &count);
|
vvfabf(tmp, dst, &count);
|
||||||
#else
|
#else
|
||||||
vvfabsf(tmp, dst, &count);
|
vvfabsf(tmp, dst, &count);
|
||||||
|
|||||||
Reference in New Issue
Block a user