shithub: npe

ref: 9b9baca20eb6f5b86c460b5e7c0d3733fd5c6983
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;
}