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

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

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