[CRT/MATH]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 7 Sep 2014 18:13:52 +0000 (18:13 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 7 Sep 2014 18:13:52 +0000 (18:13 +0000)
* Use the GCC version if inline assembly in ldexp() as it works with Clang too.

svn path=/trunk/; revision=64070

reactos/lib/sdk/crt/math/i386/ldexp.c

index 7f42896..48cbc75 100644 (file)
@@ -39,18 +39,10 @@ double ldexp (double value, int exp)
     }
 
 #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
     {