aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-02-08 15:40:32 +0000
committerJonathan Wakely <jwakely@redhat.com>2024-02-15 11:43:21 +0000
commit4d819db7f229a23cb15ef68f310e0bb51d201c45 (patch)
tree0f8e096528c7512cb79d029a578eb46793ab5dae /gcc
parentb58f0e5216a3053486e7f1aa96c3f2443b14d630 (diff)
downloadgcc-4d819db7f229a23cb15ef68f310e0bb51d201c45.zip
gcc-4d819db7f229a23cb15ef68f310e0bb51d201c45.tar.gz
gcc-4d819db7f229a23cb15ef68f310e0bb51d201c45.tar.bz2
libstdc++: Use unsigned division in std::rotate [PR113811]
Signed 64-bit division is much slower than unsigned, so cast the n and k values to unsigned before doing n %= k. We know this is safe because neither value can be negative. libstdc++-v3/ChangeLog: PR libstdc++/113811 * include/bits/stl_algo.h (__rotate): Use unsigned values for division.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions