This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v2 5/8] float128: Include math-finite.h for _Float128
- From: "Gabriel F. T. Gomes" <gftg at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 28 Apr 2017 18:34:37 -0300
- Subject: [PATCH v2 5/8] float128: Include math-finite.h for _Float128
- Authentication-results: sourceware.org; auth=none
- References: <1493415280-30534-1-git-send-email-gftg@linux.vnet.ibm.com>
All the declarations in math-finite.h are macroized by floating-point
type. This patch includes it for float128.
2017-03-20 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
* math/math.h: Include bits/math-finite.h for _Float128.
---
math/math.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/math/math.h b/math/math.h
index f154d45..d022d9f 100644
--- a/math/math.h
+++ b/math/math.h
@@ -659,6 +659,19 @@ extern int matherr (struct exception *__exc);
# endif
# endif /* __USE_ISOC99. */
+
+/* Include bits/math-finite.h for float128. */
+# if __USE_FLOAT128
+# define _Mdouble_ _Float128
+# define __MATH_DECLARING_DOUBLE 0
+# define __MATH_DECLARING_LDOUBLE 0
+# define _MSUF_ f128
+# include <bits/math-finite.h>
+# undef _Mdouble_
+# undef __MATH_DECLARING_DOUBLE
+# undef __MATH_DECLARING_LDOUBLE
+# undef _MSUF_
+# endif
#endif /* __FINITE_MATH_ONLY__ > 0. */
#ifdef __USE_ISOC99
--
2.4.11