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

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