shithub: npe

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