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

long lrintf(float x)
{
	long r;
	__asm__ ("cvtss2si %1, %0" : "=r"(r) : "x"(x));
	return r;
}