diff options
author | Matthias Kretz <m.kretz@gsi.de> | 2021-06-24 14:20:14 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-06-24 14:33:19 +0100 |
commit | dd1c7792d6ff70e830e0ff8028bbac8379f5a79c (patch) | |
tree | 41982e2210fb7cb5e904f5dea5712257fa2d7ccc /libstdc++-v3/include/experimental | |
parent | 343f01f4cde17003b6721722361e190bd6cffd15 (diff) |
libstdc++: Remove incorrect fabs(simd) overload
fabs(int) returns double, this one didn't. This overload is not
specified in the Parallelism TS 2. Also remove the comment about labs
and llabs: it doesn't belong here.
Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
libstdc++-v3/ChangeLog:
* include/experimental/bits/simd_math.h (fabs): Remove
fabs(simd<integral>) overload.
Diffstat (limited to 'libstdc++-v3/include/experimental')
-rw-r--r-- | libstdc++-v3/include/experimental/bits/simd_math.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libstdc++-v3/include/experimental/bits/simd_math.h b/libstdc++-v3/include/experimental/bits/simd_math.h index d954e761eee..fe670e60961 100644 --- a/libstdc++-v3/include/experimental/bits/simd_math.h +++ b/libstdc++-v3/include/experimental/bits/simd_math.h @@ -865,22 +865,6 @@ template <typename _Tp, typename _Abi> abs(const simd<_Tp, _Abi>& __x) { return {__private_init, _Abi::_SimdImpl::_S_abs(__data(__x))}; } -template <typename _Tp, typename _Abi> - enable_if_t<!is_floating_point_v<_Tp> && is_signed_v<_Tp>, simd<_Tp, _Abi>> - fabs(const simd<_Tp, _Abi>& __x) - { return {__private_init, _Abi::_SimdImpl::_S_abs(__data(__x))}; } - -// the following are overloads for functions in <cstdlib> and not covered by -// [parallel.simd.math]. I don't see much value in making them work, though -/* -template <typename _Abi> simd<long, _Abi> labs(const simd<long, _Abi> &__x) -{ return {__private_init, _Abi::_SimdImpl::abs(__data(__x))}; } - -template <typename _Abi> simd<long long, _Abi> llabs(const simd<long long, _Abi> -&__x) -{ return {__private_init, _Abi::_SimdImpl::abs(__data(__x))}; } -*/ - #define _GLIBCXX_SIMD_CVTING2(_NAME) \ template <typename _Tp, typename _Abi> \ _GLIBCXX_SIMD_INTRINSIC simd<_Tp, _Abi> _NAME( \ |