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