repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
bits/syscall.h: add landlock syscalls from linux v5.13
[musl.git]
/
src
/
math
/
x86_64
/
fmodl.c
blob
3daeab060002c79fd96a1c4123890e559f1e8b3b
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
}