#include <math.h>

// FIXME: incorrect exception behavior

long lrint(double x)
{
	return rint(x);
}