Author: akhaldi
Date: Sun Sep 7 18:13:52 2014
New Revision: 64070
URL:
http://svn.reactos.org/svn/reactos?rev=64070&view=rev
Log:
[CRT/MATH]
* Use the GCC version if inline assembly in ldexp() as it works with Clang too.
Modified:
trunk/reactos/lib/sdk/crt/math/i386/ldexp.c
Modified: trunk/reactos/lib/sdk/crt/math/i386/ldexp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/i386/ldex…
==============================================================================
--- trunk/reactos/lib/sdk/crt/math/i386/ldexp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/math/i386/ldexp.c [iso-8859-1] Sun Sep 7 18:13:52 2014
@@ -39,18 +39,10 @@
}
#ifdef __GNUC__
-#if defined(__clang__)
- asm ("fild %[exp]\n"
- "fscale\n"
- "fstp %%st(1)\n"
- : [result] "=t" (result)
- : [value] "0" (value), [exp] "m" (exp));
-#else
asm ("fscale"
: "=t" (result)
: "0" (value), "u" ((double)exp)
: "1");
-#endif
#else /* !__GNUC__ */
__asm
{