]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add likely/unlikely attributes to <codecvt> implementation
authorJonathan Wakely <jwakely@redhat.com>
Fri, 24 Feb 2023 21:28:11 +0000 (21:28 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 18 Mar 2024 13:50:52 +0000 (13:50 +0000)
commitec9735922b6f28cf704c8a7850a34aed82675b91
tree738e2d1121ef1884065f00984a79006160a2f7d2
parent12c193e5723f08694c8784457200112bae117063
libstdc++: Add likely/unlikely attributes to <codecvt> implementation

For the common case of converting valid text this improves performance
significantly.

libstdc++-v3/ChangeLog:

* src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
attributes.

(cherry picked from commit a41a56dee5c2d48337739d60c43cab5074bcc8e7)
libstdc++-v3/src/c++11/codecvt.cc