about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-24 07:35:23 +0000
committerbors <bors@rust-lang.org>2022-12-24 07:35:23 +0000
commit5e8bab91d339037388d152fd5066c26ae707d54e (patch)
tree1994ffd27f95daf501c6c706f2cd6eab2446a117 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent4f4d0586ad20c66a16d547581ca379beafece93a (diff)
parent28162ad97024f470e107dd224f07f1d6ca0fa642 (diff)
downloadrust-5e8bab91d339037388d152fd5066c26ae707d54e.tar.gz
rust-5e8bab91d339037388d152fd5066c26ae707d54e.zip
Auto merge of #106081 - mina86:c, r=Mark-Simulacrum
char: µoptimise UTF-16 surrogates decoding

According to Godbolt¹, on x86_64 using binary and produces slightly
better code than using subtraction.  Readability of both is pretty
much equivalent so might just as well use the shorter option.

¹ https://rust.godbolt.org/z/9jM3ejbMx
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions