aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-11-01 21:52:37 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-11-13 20:21:39 +0000
commite717c322c6ee21bd5d9cf9373dcd9b4e8ba3312f (patch)
tree7eb96eb237f6c4e6cf91775b5effcb0a1f63113c /libcpp
parent37b17388fca498cff718a13aa8d4523f15427c8c (diff)
downloadgcc-e717c322c6ee21bd5d9cf9373dcd9b4e8ba3312f.zip
gcc-e717c322c6ee21bd5d9cf9373dcd9b4e8ba3312f.tar.gz
gcc-e717c322c6ee21bd5d9cf9373dcd9b4e8ba3312f.tar.bz2
libstdc++: Replace _Hashtable::__fwd_value_for with cast
We can just use a cast to the appropriate type instead of calling a function to do it. This gives the compiler less work to compile and optimize, and at -O0 avoids a function call per element. libstdc++-v3/ChangeLog: * include/bits/hashtable.h (_Hashtable::__fwd_value_for): Remove. (_Hashtable::_M_assign): Use static_cast instead of __fwd_value_for. Reviewed-by: François Dumont <fdumont@gcc.gnu.org>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions