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/llround.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/llround.c')
-rw-r--r-- | src/math/llround.c | 14 |
1 files changed, 5 insertions, 9 deletions
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 <math.h> +long long llround(double x) +{ + return round(x); +} |