From 4ca70e1a2bb266756692ebfd0a757a960bc8796c Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 3 Nov 2017 23:50:00 +0000 Subject: Handle more _FloatN, _FloatNx types in __MATH_TG. Continuing the preparation for additional _FloatN / _FloatNx type support, this patch prepares __MATH_TG to handle more such types. Various unhandled cases, which do not correspond to any current glibc configuration, have explicit #errors added. _Float32 and _Float64x are then handled appropriately in the _Generic case, which is the only one, other than the cases where use of sizeof is sufficient, where they should ever be explicit types at the language level instead of typedefs. There is no need to handle _Float64 or _Float32x explicitly there because the default case calling a double function is correct for those types. Tested for x86_64. * math/math.h [__HAVE_DISTINCT_FLOAT16 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X || __HAVE_DISTINCT_FLOAT128X]: Use #error. [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise. [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise. [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION] (__MATH_TG_F32): New macro. [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION] (__MATH_TG_F64X): Likewise. [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION] (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X. --- ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index f862d9c890..44d55184cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2017-11-03 Joseph Myers + + * math/math.h [__HAVE_DISTINCT_FLOAT16 + || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64 + || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X + || __HAVE_DISTINCT_FLOAT128X]: Use #error. + [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise. + [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION + && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise. + [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION] + (__MATH_TG_F32): New macro. + [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION] + (__MATH_TG_F64X): Likewise. + [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION] + (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X. + 2017-11-03 Dmitry V. Levin * po/de.po: Update translations. -- cgit 1.4.1