projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for module 'integer_length_ll'.
[gnulib.git]
/
lib
/
floorl.c
diff --git
a/lib/floorl.c
b/lib/floorl.c
index
b703d90
..
aa62294
100644
(file)
--- a/
lib/floorl.c
+++ b/
lib/floorl.c
@@
-1,5
+1,5
@@
/* Round towards negative infinity.
/* Round towards negative infinity.
- Copyright (C) 2007, 2009
, 2010
Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009
-2011
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-16,5
+16,22
@@
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
-#define USE_LONG_DOUBLE
-#include "floor.c"
+#include <config.h>
+
+#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
+
+/* Specification. */
+# include <math.h>
+
+long double
+floorl (long double x)
+{
+ return floor (x);
+}
+
+#else
+
+# define USE_LONG_DOUBLE
+# include "floor.c"
+
+#endif