aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-06-05 16:01:26 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2024-07-05 12:18:34 +0100
commitde19b516edbf919d31e9d22fdbf6066342d904a2 (patch)
tree7df0d9a35c4a44b386c0978661fe1be559d7216a /gcc
parent97fcfeac3dcc433b792711fd840b92fa3e860733 (diff)
downloadgcc-de19b516edbf919d31e9d22fdbf6066342d904a2.zip
gcc-de19b516edbf919d31e9d22fdbf6066342d904a2.tar.gz
gcc-de19b516edbf919d31e9d22fdbf6066342d904a2.tar.bz2
libstdc++: Use memchr to optimize std::find [PR88545]
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): New variable template. * include/bits/ranges_util.h (__find_fn): Use memchr when possible. * include/bits/stl_algo.h (find): Likewise. * testsuite/25_algorithms/find/bytes.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions