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:
Jonathan Wakely
2026-05-05 19:12:58 +01:00
committed by Jonathan Wakely
parent 6112538b06
commit 8d287bd704

View File

@@ -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>