Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
src
/
math
/
x86_64
/
fmodl.c
blob: 3daeab060002c79fd96a1c4123890e559f1e8b3b [
file
] [
log
] [
blame
]
#include
<math.h>
long
double
fmodl
(
long
double
x
,
long
double
y
)
{
unsigned
short
fpsr
;
do
__asm__
(
"fprem; fnstsw %%ax"
:
"+t"
(
x
),
"=a"
(
fpsr
)
:
"u"
(
y
));
while
(
fpsr
&
0x400
);
return
x
;
}