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