This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[libstdc++v3 patch / PR40038] restore definition of ceill
- From: Matthias Klose <doko at ubuntu dot com>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 06 May 2009 14:46:13 +0200
- Subject: [libstdc++v3 patch / PR40038] restore definition of ceill
src/math_stubs_long_double.cc is missing the definition of ceill, which was
originally found in libmath/stubs.c up to GCC 4.3.
The other symbol mentioned in the report (tanhl) is there, it is just
accidentally removed in the proposed patch for PR39491.
Ok for the trunk and the 4.4 branch?
Matthias
2009-05-06 Matthias Klose <doko@ubuntu.com>
PR libstdc++/40038
* src/math_stubs_long_double.cc: Add ceill.
Index: libstdc++-v3/src/math_stubs_long_double.cc
===================================================================
--- libstdc++-v3/src/math_stubs_long_double.cc (revision 147161)
+++ libstdc++-v3/src/math_stubs_long_double.cc (working copy)
@@ -70,6 +70,14 @@
}
#endif
+#ifndef _GLIBCXX_HAVE_CEILL
+ long double
+ ceill(long double x)
+ {
+ return ceil((double) x);
+ }
+#endif
+
#ifndef _GLIBCXX_HAVE_COSL
long double
cosl(long double x)