mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
libstdc++: Fix experimental::__is_x86_pd() [PR124657]
libstdc++-v3/ChangeLog: PR libstdc++/124657 * include/experimental/bits/simd_x86.h (__is_x86_pd): Fix macro names and refactor to reduce instantiations.
This commit is contained in:
committed by
Jonathan Wakely
parent
6112538b06
commit
8d287bd704
@@ -426,11 +426,14 @@ template <typename _Tp>
|
||||
constexpr bool
|
||||
__is_x86_pd()
|
||||
{
|
||||
#if __LDBL_MANT_DIG == __DBL_MANT_DIG
|
||||
if constexpr (is_same_v<_Tp, long double>)
|
||||
if constexpr (is_same_v<_Tp, double>)
|
||||
return true;
|
||||
#if __LDBL_MANT_DIG__ == __DBL_MANT_DIG__
|
||||
else if constexpr (is_same_v<_Tp, long double>)
|
||||
return true;
|
||||
#endif
|
||||
return is_same_v<_Tp, double>;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename _Tp, size_t _Np>
|
||||
|
||||
Reference in New Issue
Block a user