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/lroundf.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/lroundf.c')
-rw-r--r-- | src/math/lroundf.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/math/lroundf.c b/src/math/lroundf.c index 135ba583..c4707e7d 100644 --- a/src/math/lroundf.c +++ b/src/math/lroundf.c @@ -1,8 +1,6 @@ -#define type float -#define roundit roundf -#define dtype long -#define DTYPE_MIN LONG_MIN -#define DTYPE_MAX LONG_MAX -#define fn lroundf +#include <math.h> -#include "lround.c" +long lroundf(float x) +{ + return roundf(x); +} |