shithub: npe

ref: 004f6f57af8b5bbc2ff07b0f8fce148ba4c1c24d
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;
}