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/lroundl.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/math/lroundl.c') diff --git a/src/math/lroundl.c b/src/math/lroundl.c index 7b593f77..094fdf64 100644 --- a/src/math/lroundl.c +++ b/src/math/lroundl.c @@ -1,18 +1,6 @@ #include -#include -#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 long lroundl(long double x) { - return lround(x); + return roundl(x); } -#else -#define type long double -#define roundit roundl -#define dtype long -#define DTYPE_MIN LONG_MIN -#define DTYPE_MAX LONG_MAX -#define fn lroundl - -#include "lround.c" -#endif -- cgit v1.2.1