shithub: npe

ref: 5cade7073c5e1ed971b525e49c3c0dd43d6a9feb
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;
}