From 9d1fde0fff84e520fa7ff87ce8e0dac5537bed0b Mon Sep 17 00:00:00 2001 From: wiredfool Date: Thu, 13 Nov 2014 21:35:06 -0800 Subject: [PATCH] Use __NO_INLINE__ instead of Py_DEBUG --- libImaging/Antialias.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libImaging/Antialias.c b/libImaging/Antialias.c index a97141013..1799e7fdc 100644 --- a/libImaging/Antialias.c +++ b/libImaging/Antialias.c @@ -93,9 +93,8 @@ static inline UINT8 clip8(float in) /* This is work around bug in GCC prior 4.9 in 64 bit mode. GCC generates code with partial dependency which 3 times slower. See: http://stackoverflow.com/a/26588074/253146 */ -#if defined(__x86_64__) && defined(__SSE__) && \ - ! defined(__clang__) && defined(GCC_VERSION) && (GCC_VERSION < 40900) && \ - ! defined(Py_DEBUG) +#if defined(__x86_64__) && defined(__SSE__) && ! defined(__NO_INLINE__) && \ + ! defined(__clang__) && defined(GCC_VERSION) && (GCC_VERSION < 40900) static float __attribute__((always_inline)) i2f(int v) { float x; __asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=X"(x) : "r"(v) );