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