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