From 1e10430da8cfe9510356d1fefccb9a638ef9e7bb Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 30 Jul 2017 20:54:28 -0700 Subject: [PATCH] Fix for macOS 10.13 SDK. --- Frameworks/SSEQPlayer/SSEQPlayer/Channel.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Frameworks/SSEQPlayer/SSEQPlayer/Channel.cpp b/Frameworks/SSEQPlayer/SSEQPlayer/Channel.cpp index 44c9054b6..409c0d720 100644 --- a/Frameworks/SSEQPlayer/SSEQPlayer/Channel.cpp +++ b/Frameworks/SSEQPlayer/SSEQPlayer/Channel.cpp @@ -52,7 +52,6 @@ double Channel::window_lut[Channel::SINC_SAMPLES + 1]; static const double M_PI = 3.14159265358979323846; #endif -#if !defined(MAC_OS_X_VERSION_10_13) || (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13) // Code from http://hbfs.wordpress.com/2008/08/05/branchless-equivalents-of-simple-functions/ inline int32_t sex(int32_t x) { @@ -69,11 +68,10 @@ inline int32_t sex(int32_t x) return z.s.hi; } -inline uint32_t abs(int32_t x) +inline int32_t abs(int32_t x) { return (x ^ sex(x)) - sex(x); } -#endif // Code from http://learningcppisfun.blogspot.com/2010/04/comparing-floating-point-numbers.html template inline bool fEqual(T x, T y, int N = 1)