projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maint: update copyright
[gnulib.git]
/
lib
/
ceill.c
diff --git
a/lib/ceill.c
b/lib/ceill.c
index
b55265b
..
c5ca2fb
100644
(file)
--- a/
lib/ceill.c
+++ b/
lib/ceill.c
@@
-1,5
+1,5
@@
/* Round towards positive infinity.
/* Round towards positive infinity.
- Copyright (C) 2007, 2009
, 2010
Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009
-2014
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 "ceil.c"
+#include <config.h>
+
+#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
+
+/* Specification. */
+# include <math.h>
+
+long double
+ceill (long double x)
+{
+ return ceil (x);
+}
+
+#else
+
+# define USE_LONG_DOUBLE
+# include "ceil.c"
+
+#endif