mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Fix compilation on debug versions of python
This commit is contained in:
parent
482f658704
commit
112a4815f0
|
@ -94,7 +94,8 @@ static inline UINT8 clip8(float in)
|
|||
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(__clang__) && defined(GCC_VERSION) && (GCC_VERSION < 40900) && \
|
||||
! defined(Py_DEBUG)
|
||||
static float __attribute__((always_inline)) i2f(int v) {
|
||||
float x;
|
||||
__asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=X"(x) : "r"(v) );
|
||||
|
|
Loading…
Reference in New Issue
Block a user