projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31ceb31
)
[CRT/MATH]
author
Amine Khaldi
<amine.khaldi@reactos.org>
Sun, 7 Sep 2014 18:13:52 +0000
(18:13 +0000)
committer
Amine 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
patch
|
blob
|
history
diff --git
a/reactos/lib/sdk/crt/math/i386/ldexp.c
b/reactos/lib/sdk/crt/math/i386/ldexp.c
index
7f42896
..
48cbc75
100644
(file)
--- a/
reactos/lib/sdk/crt/math/i386/ldexp.c
+++ b/
reactos/lib/sdk/crt/math/i386/ldexp.c
@@
-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
{