ref: 537d4c5c119be15eec734bc443074a8d90b9c202 dir: /libnpe/lrintf.c/
#include <math.h> int lrintf(float f) { int i; *((float*)&i) = f + 12582912.0f; return (i & 0x7fffff) - 0x400000; }