Back to index

glibc  2.9
Functions
e_fmodl.c File Reference
#include <math_private.h>

Go to the source code of this file.

Functions

long double __ieee754_fmodl (long double x, long double y)

Function Documentation

long double __ieee754_fmodl ( long double  x,
long double  y 
)

Definition at line 11 of file e_fmodl.c.

{
  long double res;

  asm ("1:\tfprem\n"
       "fstsw   %%ax\n"
       "sahf\n"
       "jp      1b\n"
       "fstp    %%st(1)"
       : "=t" (res) : "0" (x), "u" (y) : "ax", "st(1)");
  return res;
}