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

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

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