From 79800125ae584801d48daf36f3826faeac52b51d Mon Sep 17 00:00:00 2001 From: cutealien Date: Mon, 16 Dec 2019 13:57:31 +0000 Subject: [PATCH] No longer try to use __asm on _WIN64 in VisualStudio. 64-bit asm isn't supported on VS (and I suppose we used 32-bit asm anyway). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6010 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/irrMath.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/irrMath.h b/include/irrMath.h index 3c664e20..01939253 100644 --- a/include/irrMath.h +++ b/include/irrMath.h @@ -524,7 +524,7 @@ namespace core REALINLINE f32 reciprocal_squareroot(const f32 f) { #if defined ( IRRLICHT_FAST_MATH ) - #if defined(_MSC_VER) + #if defined(_MSC_VER) && !defined(_WIN64) // SSE reciprocal square root estimate, accurate to 12 significant // bits of the mantissa f32 recsqrt; @@ -561,7 +561,7 @@ namespace core // bi ts of the mantissa // One Newton-Raphson Iteration: // f(i+1) = 2 * rcpss(f) - f * rcpss(f) * rcpss(f) -#if defined(_MSC_VER) +#if defined(_MSC_VER) && !defined(_WIN64) f32 rec; __asm rcpss xmm0, f // xmm0 = rcpss(f) __asm movss xmm1, f // xmm1 = f @@ -603,7 +603,7 @@ namespace core // bi ts of the mantissa // One Newton-Raphson Iteration: // f(i+1) = 2 * rcpss(f) - f * rcpss(f) * rcpss(f) -#if defined(_MSC_VER) +#if defined(_MSC_VER) && !defined(_WIN64) f32 rec; __asm rcpss xmm0, f // xmm0 = rcpss(f) __asm movss xmm1, f // xmm1 = f @@ -643,7 +643,7 @@ namespace core s32 t; -#if defined(_MSC_VER) +#if defined(_MSC_VER) && !defined(_WIN64) __asm { fld x @@ -675,7 +675,7 @@ namespace core s32 t; -#if defined(_MSC_VER) +#if defined(_MSC_VER) && !defined(_WIN64) __asm { fld x @@ -706,7 +706,7 @@ namespace core #if defined(IRRLICHT_FAST_MATH) s32 t; -#if defined(_MSC_VER) +#if defined(_MSC_VER) && !defined(_WIN64) __asm { fld x