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/llround.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/math/llround.c') diff --git a/src/math/llround.c b/src/math/llround.c index c11fc3ba..4d94787d 100644 --- a/src/math/llround.c +++ b/src/math/llround.c @@ -1,10 +1,6 @@ -#define type double -#define roundit round -#define dtype long long -#define DTYPE_MIN LLONG_MIN -#define DTYPE_MAX LLONG_MAX -#define fn llround - -#include "lround.c" - +#include +long long llround(double x) +{ + return round(x); +} -- cgit v1.2.1