]> sourceware.org Git - glibc.git/commitdiff
Support _Float128 in ldbl-96 bits/iscanonical.h.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 23:06:41 +0000 (23:06 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 23:06:41 +0000 (23:06 +0000)
This patch adds _Float128 support to the ldbl-96 bits/iscanonical.h,
as needed for x86_64 / x86 / ia64 support of _Float128.

Tested for x86_64 (in conjunction with float128 patches).

* sysdeps/ieee754/ldbl-96/bits/iscanonical.h
[__HAVE_DISTINCT_FLOAT128] (__iscanonicalf128): New macro.

ChangeLog
sysdeps/ieee754/ldbl-96/bits/iscanonical.h

index 8f05b18f515d27f0f2d2a01c0a16eabb02fddb1a..e7a68b3ac3f93f9948bee001c83a2e3572c916b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-06-22  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/ieee754/ldbl-96/bits/iscanonical.h
+       [__HAVE_DISTINCT_FLOAT128] (__iscanonicalf128): New macro.
+
        * sysdeps/generic/math-tests.h: Include <bits/floatn.h>.
        (MATH_TESTS_TG): New macro.
        (SNAN_TESTS_float128): Likewise.
index 2c8b78618309c536d84f8e4dd82fed04e8852b3c..4a4f4ad0248dea4628f7a606d22c4e33936fbd6f 100644 (file)
@@ -24,6 +24,9 @@ extern int __iscanonicall (long double __x)
      __THROW __attribute__ ((__const__));
 #define __iscanonicalf(x) ((void) (__typeof (x)) (x), 1)
 #define __iscanonical(x) ((void) (__typeof (x)) (x), 1)
+#if __HAVE_DISTINCT_FLOAT128
+# define __iscanonicalf128(x) ((void) (__typeof (x)) (x), 1)
+#endif
 
 /* Return nonzero value if X is canonical.  In IEEE interchange binary
    formats, all values are canonical, but the argument must still be
This page took 0.141383 seconds and 5 git commands to generate.