☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
math
/
x86_64
/
fmodl.c
☽
☼
libc-top-half/musl/src/math/x86_64/fmodl.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
1
#include <math.h>
2
3
long double fmodl(long double x, long double y)
4
{
5
unsigned short fpsr;
6
do __asm__ ("fprem; fnstsw %%ax" : "+t"(x), "=a"(fpsr) : "u"(y));
7
while (fpsr & 0x400);
8
return x;
9
}