Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/mingwex/math/lroundl.c')
-rw-r--r--winsup/mingw/mingwex/math/lroundl.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/winsup/mingw/mingwex/math/lroundl.c b/winsup/mingw/mingwex/math/lroundl.c
deleted file mode 100644
index 7a6348124..000000000
--- a/winsup/mingw/mingwex/math/lroundl.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <math.h>
-#include <limits.h>
-#include <errno.h>
-
-long
-lroundl (long double x)
-{
- /* Add +/- 0.5, then round towards zero. */
- long double tmp = truncl (x + (x >= 0.0L ? 0.5L : -0.5L));
- if (!isfinite (tmp)
- || tmp > (long double)LONG_MAX
- || tmp < (long double)LONG_MIN)
- {
- errno = ERANGE;
- /* Undefined behaviour, so we could return anything. */
- /* return tmp > 0.0L ? LONG_MAX : LONG_MIN; */
- }
- return (long)tmp;
-}