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