diff options
Diffstat (limited to 'src/math/lrintf.c')
-rw-r--r-- | src/math/lrintf.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/math/lrintf.c b/src/math/lrintf.c index caed7ca5..34d1081c 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 <math.h> -#include "lrint.c" +/* assumes LONG_MAX > 2^24, see comments in lrint.c */ + +long lrintf(float x) +{ + return rintf(x); +} |