shithub: npe

ref: 6b2baeae7807e8c45df4aacdc36d3b6434d87c98
dir: /libnpe/lrintf.c/

View raw version
#include <math.h>

int
lrintf(float f)
{
	int i;

	*((float*)&i) = f + 12582912.0f;

	return (i & 0x7fffff) - 0x400000;
}