ref: 61db9b4fbe5ad66d0600bca8c39171c027ae2ecd dir: /libnpe/lrint.c/
#include <math.h> long lrint(double d) { long long l; *((double*)&l) = d + 6755399441055744.0; return l; }