about summary refs log tree commit diff
path: root/src/math/i386/lrintl.c
blob: eb8c090288199537d43819880d449e81d7b8f43c (plain) (blame)
1
2
3
4
5
6
7
8
#include <math.h>

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