diff options
author | nsz <nsz@port70.net> | 2012-03-18 20:52:33 +0100 |
---|---|---|
committer | nsz <nsz@port70.net> | 2012-03-18 20:52:33 +0100 |
commit | afad262440d213633144d696b8fdda7a65bf26d1 (patch) | |
tree | ce48fe2e56ad9459dec8503cf377acc81b66fd39 /src/math/llroundl.c | |
parent | 65db00983f3fa5449f20f2694477f9d5116f6ea5 (diff) | |
download | musl-afad262440d213633144d696b8fdda7a65bf26d1.tar.gz musl-afad262440d213633144d696b8fdda7a65bf26d1.tar.bz2 musl-afad262440d213633144d696b8fdda7a65bf26d1.tar.xz musl-afad262440d213633144d696b8fdda7a65bf26d1.zip |
simplify lround and llround functions
Simple wrappers around round is enough because
spurious inexact exception is allowed.
Diffstat (limited to 'src/math/llroundl.c')
-rw-r--r-- | src/math/llroundl.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/math/llroundl.c b/src/math/llroundl.c index 107744a9..2c2ee5ec 100644 --- a/src/math/llroundl.c +++ b/src/math/llroundl.c @@ -1,18 +1,6 @@ #include <math.h> -#include <float.h> -#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 long long llroundl(long double x) { - return llround(x); + return roundl(x); } -#else -#define type long double -#define roundit roundl -#define dtype long long -#define DTYPE_MIN LLONG_MIN -#define DTYPE_MAX LLONG_MAX -#define fn llroundl - -#include "lround.c" -#endif |