summaryrefslogtreecommitdiff
path: root/src/math/lroundl.c
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012-03-18 20:52:33 +0100
committernsz <nsz@port70.net>2012-03-18 20:52:33 +0100
commitafad262440d213633144d696b8fdda7a65bf26d1 (patch)
treece48fe2e56ad9459dec8503cf377acc81b66fd39 /src/math/lroundl.c
parent65db00983f3fa5449f20f2694477f9d5116f6ea5 (diff)
downloadmusl-afad262440d213633144d696b8fdda7a65bf26d1.tar.gz
simplify lround and llround functions
Simple wrappers around round is enough because spurious inexact exception is allowed.
Diffstat (limited to 'src/math/lroundl.c')
-rw-r--r--src/math/lroundl.c14
1 files changed, 1 insertions, 13 deletions
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 <math.h>
-#include <float.h>
-#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