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

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