This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v4 4/5] float128: Enable use of IEEE wrapper templates
- From: "Gabriel F. T. Gomes" <gftg at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Thu, 11 May 2017 17:53:03 -0300
- Subject: [PATCH v4 4/5] float128: Enable use of IEEE wrapper templates
- Authentication-results: sourceware.org; auth=none
- References: <1494535984-2826-1-git-send-email-gftg@linux.vnet.ibm.com>
No changes since v2/v3.
-- 8< --
The templates for the IEEE functions wrappers implement wrappers that
do not rely on _LIB_VERSION / matherr / __kernel_standard
functionality to set errno and fix the return value of the functions.
The wrappers are ready to be used by all floating-point types, however
they will first be used by float128, since the old wrappers for float,
double, and long double need to be first deprecated and versioned.
This commits defines __USE_WRAPPER_TEMPLATE to 1 for float128 files,
so that the new wrapper templates are used for this type.
2017-02-01 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
* sysdeps/generic/math-type-macros-float128.h
(__USE_WRAPPER_TEMPLATE): Define to 1 to enable use of the
wrapper templates.
---
sysdeps/generic/math-type-macros-float128.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sysdeps/generic/math-type-macros-float128.h b/sysdeps/generic/math-type-macros-float128.h
index dcb8560..5d734db 100644
--- a/sysdeps/generic/math-type-macros-float128.h
+++ b/sysdeps/generic/math-type-macros-float128.h
@@ -36,4 +36,7 @@
/* Supply the generic macros. */
#include <math-type-macros.h>
+/* Use the type-generic wrapper templates. */
+#define __USE_WRAPPER_TEMPLATE 1
+
#endif
--
2.4.11