summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/mingwex/math/lrintl.c
blob: f5559933256fe273ce50c92ae2d1f2c09a3948f9 (plain)
1
2
3
4
5
6
7
8
9
10
#include <math.h>

long lrintl (long double x) 
{
  long retval;
  __asm__ __volatile__							      \
    ("fistpl %0"  : "=m" (retval) : "t" (x) : "st");				      \
  return retval;
}