From 4b2e617f48353b6d63d261d57be520b9fe41a004 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Sun, 14 Oct 2012 16:43:28 +0100 Subject: [PATCH] vvfabf on OS/X < 10.7 --- src/system/VectorOps.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/VectorOps.h b/src/system/VectorOps.h index 03f881c..ba35c97 100644 --- a/src/system/VectorOps.h +++ b/src/system/VectorOps.h @@ -674,7 +674,11 @@ inline void v_abs(float *const R__ dst, const int count) { float tmp[count]; +#if (MACOSX_DEPLOYMENT_TARGET <= 1070 && MAC_OS_X_VERSION_MIN_REQUIRED <= 1070) + vvfabf(tmp, dst, &count); +#else vvfabsf(tmp, dst, &count); +#endif v_copy(dst, tmp, count); } #endif