Fix _i2f compilation on some GCC versions

This commit is contained in:
Alexander 2018-04-02 17:10:51 +03:00
parent 0b578f25d5
commit 79ed02b8f4

View File

@ -37,7 +37,7 @@
! defined(__clang__) && defined(GCC_VERSION) && (GCC_VERSION < 40900)
static float __attribute__((always_inline)) inline _i2f(int v) {
float x;
__asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=X"(x) : "r"(v) );
__asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=x"(x) : "r"(v) );
return x;
}
#else