master
1#include <math.h>
2
3long lrintf(float x)
4{
5	long r;
6	__asm__ ("fistpl %0" : "=m"(r) : "t"(x) : "st");
7	return r;
8}