From afad262440d213633144d696b8fdda7a65bf26d1 Mon Sep 17 00:00:00 2001 From: nsz Date: Sun, 18 Mar 2012 20:52:33 +0100 Subject: simplify lround and llround functions Simple wrappers around round is enough because spurious inexact exception is allowed. --- src/math/lroundf.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/math/lroundf.c') diff --git a/src/math/lroundf.c b/src/math/lroundf.c index 135ba583..c4707e7d 100644 --- a/src/math/lroundf.c +++ b/src/math/lroundf.c @@ -1,8 +1,6 @@ -#define type float -#define roundit roundf -#define dtype long -#define DTYPE_MIN LONG_MIN -#define DTYPE_MAX LONG_MAX -#define fn lroundf +#include -#include "lround.c" +long lroundf(float x) +{ + return roundf(x); +} -- cgit v1.2.1