X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flrintf.c;h=ca0b6a46aaed3cf97d61724923593ea1b9d7aaf3;hb=99a2af6f45b356324e99acf0da809ca416eed0de;hp=caed7ca5e4f56a5019f4cb76190e1e971b33cf13;hpb=b69f695acedd4ce2798ef9ea28d834ceccc789bd;p=musl diff --git a/src/math/lrintf.c b/src/math/lrintf.c index caed7ca5..ca0b6a46 100644 --- a/src/math/lrintf.c +++ b/src/math/lrintf.c @@ -1,6 +1,8 @@ -#define type float -#define roundit rintf -#define dtype long -#define fn lrintf +#include -#include "lrint.c" +/* uses LONG_MAX > 2^24, see comments in lrint.c */ + +long lrintf(float x) +{ + return rintf(x); +}