]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Add missing constexpr on simd shift implementation
authorMatthias Kretz <m.kretz@gsi.de>
Mon, 20 Feb 2023 16:35:59 +0000 (17:35 +0100)
committerMatthias Kretz <m.kretz@gsi.de>
Thu, 23 Feb 2023 14:04:46 +0000 (15:04 +0100)
commit4f9d81ef7899437bb5d461e1e034592972f6d04e
tree7e9817f6afd14ecbcbee620483f3b1e304c57b13
parentbbf5d10206a71e2d62baee4240a5a2d2123592f9
libstdc++: Add missing constexpr on simd shift implementation

Resolves -Wtautological-compare warnings about `if
(__builtin_is_constant_evaluated())` in the implementations of these
functions.

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.

(cherry picked from commit fa37ac2b59ed1c379b35dbf9bd58f7849f9fd5b5)
libstdc++-v3/include/experimental/bits/simd_x86.h
This page took 0.055416 seconds and 5 git commands to generate.