summaryrefslogblamecommitdiff
path: root/src/math/x86_64/lrint.c
blob: a742fec64c90fa55d876ea7110c9d83a48e613d0 (plain) (tree)
1
2
3
4
5
6
7
8







                                                       
#include <math.h>

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