Merge pull request #3067 from uploadcare/fix-_i2f

Fix _i2f compilation on some GCC versions
This commit is contained in:
Alexander Karpinsky 2018-04-03 11:00:45 +03:00 committed by GitHub
commit ca850a6334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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