shithub: npe

ref: 4cf6f39af2db7e9c5985ff80cc20a8b7b8567a31
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;
}