1 2 3 4 5 6 7 8
#include <math.h> /* uses LONG_MAX > 2^24, see comments in lrint.c */ long lrintf(float x) { return rintf(x); }