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/llroundf.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/math/llroundf.c') diff --git a/src/math/llroundf.c b/src/math/llroundf.c index 594ce967..19eb77ee 100644 --- a/src/math/llroundf.c +++ b/src/math/llroundf.c @@ -1,8 +1,6 @@ -#define type float -#define roundit roundf -#define dtype long long -#define DTYPE_MIN LLONG_MIN -#define DTYPE_MAX LLONG_MAX -#define fn llroundf +#include -#include "lround.c" +long long llroundf(float x) +{ + return roundf(x); +} -- cgit v1.2.1