repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
i386: ulp update for SSE2 --disable-multi-arch configurations
[glibc.git]
/
sysdeps
/
i386
/
fpu
/
e_fmodl.c
blob
a5761c8b64ffd6d26d920021cbe5e1928ee14ded
1
/*
2
* Public domain.
3
*
4
*/
5
6
#include <math_private.h>
7
#include <libm-alias-finite.h>
8
9
long double
10
__ieee754_fmodl
(
long double
x
,
long double
y
)
11
{
12
long double
res
;
13
14
asm
(
"1:
\t
fprem
\n
"
15
"fstsw %%ax
\n
"
16
"sahf
\n
"
17
"jp 1b
\n
"
18
"fstp %%st(1)"
19
:
"=t"
(
res
) :
"0"
(
x
),
"u"
(
y
) :
"ax"
,
"st(1)"
);
20
return
res
;
21
}
22
libm_alias_finite
(
__ieee754_fmodl
,
__fmodl
)