Use __NO_INLINE__ instead of Py_DEBUG

This commit is contained in:
wiredfool 2014-11-13 21:35:06 -08:00
parent 112a4815f0
commit 9d1fde0fff

View File

@ -93,9 +93,8 @@ static inline UINT8 clip8(float in)
/* This is work around bug in GCC prior 4.9 in 64 bit mode. /* This is work around bug in GCC prior 4.9 in 64 bit mode.
GCC generates code with partial dependency which 3 times slower. GCC generates code with partial dependency which 3 times slower.
See: http://stackoverflow.com/a/26588074/253146 */ See: http://stackoverflow.com/a/26588074/253146 */
#if defined(__x86_64__) && defined(__SSE__) && \ #if defined(__x86_64__) && defined(__SSE__) && ! defined(__NO_INLINE__) && \
! defined(__clang__) && defined(GCC_VERSION) && (GCC_VERSION < 40900) && \ ! defined(__clang__) && defined(GCC_VERSION) && (GCC_VERSION < 40900)
! defined(Py_DEBUG)
static float __attribute__((always_inline)) i2f(int v) { static float __attribute__((always_inline)) i2f(int v) {
float x; float x;
__asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=X"(x) : "r"(v) ); __asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=X"(x) : "r"(v) );