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

long long llrint(double x)
{
	long long r;
	__asm__ ("cvtsd2si %1, %0" : "=r"(r) : "x"(x));
	return r;
}