Linux: Consolidate typesizes.h
[glibc.git] / sysdeps / i386 / fpu / e_fmodl.c
bloba5761c8b64ffd6d26d920021cbe5e1928ee14ded
1 /*
2 * Public domain.
4 */
6 #include <math_private.h>
7 #include <libm-alias-finite.h>
9 long double
10 __ieee754_fmodl (long double x, long double y)
12 long double res;
14 asm ("1:\tfprem\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;
22 libm_alias_finite (__ieee754_fmodl, __fmodl)