On Thu, 23 Feb 2023 at 08:55, Matthias Kretz via Libstdc++ <libstd...@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.kr...@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 > ──────────────────────────────────────────────────────────────────────────