summaryrefslogtreecommitdiff
path: root/src/math/i386/llrint.c
blob: aa4008171962a949d73a58ed7a48603fbc68a0d4 (plain) (blame)
1
2
3
4
5
6
7
8
#include <math.h>

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