This patch needs a tweak to not try to use memchr during constant
evaluation, i.e. check std::is_constant_evaluated().
On Wed, 5 Jun 2024 at 16:34, Jonathan Wakely wrote:
>
> I plan to push this after testing finishes.
>
> -- >8 --
>
> This optimizes std::find to use memchr when searching for an
I plan to push this after testing finishes.
-- >8 --
This optimizes std::find to use memchr when searching for an integer in
a range of bytes.
libstdc++-v3/ChangeLog:
PR libstdc++/88545
PR libstdc++/115040
* include/bits/cpp_type_traits.h (__can_use_memchr_for_find):