summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-96/bits
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-06-22 23:06:41 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-06-22 23:06:41 +0000
commitc271ff9469dd55896c5110194bb3668e4ddb2708 (patch)
tree6ac20d62ff43133b2206d67768766b336a18759f /sysdeps/ieee754/ldbl-96/bits
parent8d375dafe2caa85add7d5ef5bf8c8d421353df7b (diff)
downloadglibc-c271ff9469dd55896c5110194bb3668e4ddb2708.tar.gz
glibc-c271ff9469dd55896c5110194bb3668e4ddb2708.tar.xz
glibc-c271ff9469dd55896c5110194bb3668e4ddb2708.zip
Support _Float128 in ldbl-96 bits/iscanonical.h.
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.
Diffstat (limited to 'sysdeps/ieee754/ldbl-96/bits')
-rw-r--r--sysdeps/ieee754/ldbl-96/bits/iscanonical.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/ieee754/ldbl-96/bits/iscanonical.h b/sysdeps/ieee754/ldbl-96/bits/iscanonical.h
index 2c8b786183..4a4f4ad024 100644
--- a/sysdeps/ieee754/ldbl-96/bits/iscanonical.h
+++ b/sysdeps/ieee754/ldbl-96/bits/iscanonical.h
@@ -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