[PATCH 4/8] libstdc++: Add missing constexpr on simd shift implementation
Jonathan Wakely
jwakely@redhat.com
Thu Feb 23 11:07:11 GMT 2023
On Thu, 23 Feb 2023 at 08:55, Matthias Kretz via Libstdc++
<libstdc++@gcc.gnu.org> wrote:
>
>
>
> Resolves -Wtautological-compare warnings about `if
> (__builtin_is_constant_evaluated())` in the implementations of these
> functions.
The 'inline' is redundant now, because these are unconditionally
constexpr which implies inline.
OK for all branches, with or without removing the 'inline'.
>
> Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
>
> libstdc++-v3/ChangeLog:
>
> * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
> (_S_bit_shift_right): Declare constexpr. The implementation was
> already expecting constexpr evaluation.
> ---
> libstdc++-v3/include/experimental/bits/simd_x86.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
>
> --
> ──────────────────────────────────────────────────────────────────────────
> Dr. Matthias Kretz https://mattkretz.github.io
> GSI Helmholtz Centre for Heavy Ion Research https://gsi.de
> stdₓ::simd
> ──────────────────────────────────────────────────────────────────────────
More information about the Libstdc++
mailing list