Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lrint.c « math « mingwex « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7dfa233a8ee1799144def5a7ac0aed49c1829235 (plain)
1
2
3
4
5
6
7
8
9
#include <math.h>

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