From 2d035e9c5a77a6b9a2444eb1a29a3b4ebe09d329 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Mon, 16 Nov 2020 20:37:58 +0300 Subject: [PATCH] mathlib: check for x86 architecture in SinCos --- utils/common/mathlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/common/mathlib.cpp b/utils/common/mathlib.cpp index dc75d34..a54b870 100644 --- a/utils/common/mathlib.cpp +++ b/utils/common/mathlib.cpp @@ -193,7 +193,7 @@ SinCos */ void SinCos( float radians, float *sine, float *cosine ) { - #ifdef _MSC_VER + #if defined _MSC_VER && defined(__i386__) _asm { fld dword ptr [radians]