mirror of
https://github.com/opnsense/src.git
synced 2026-04-26 16:47:30 -04:00
Update ldexp.c for amd64.
This commit is contained in:
parent
0748ca59e0
commit
6b22ec82bf
2 changed files with 1 additions and 7 deletions
|
|
@ -3,4 +3,4 @@
|
|||
|
||||
SRCS+= _setjmp.S setjmp.S sigsetjmp.S \
|
||||
fabs.S modf.S \
|
||||
frexp.c infinity.c isinf.c
|
||||
frexp.c infinity.c isinf.c ldexp.c
|
||||
|
|
|
|||
|
|
@ -58,15 +58,9 @@ ldexp (double value, int exp)
|
|||
double temp, texp, temp2;
|
||||
texp = exp;
|
||||
#ifdef __GNUC__
|
||||
#if __GNUC__ >= 2
|
||||
asm ("fscale "
|
||||
: "=u" (temp2), "=t" (temp)
|
||||
: "0" (texp), "1" (value));
|
||||
#else
|
||||
asm ("fscale ; fxch %%st(1) ; fstp%L1 %1 "
|
||||
: "=f" (temp), "=0" (temp2)
|
||||
: "0" (texp), "f" (value));
|
||||
#endif
|
||||
#else
|
||||
error unknown asm
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue