about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2022-12-23 13:38:03 +0100
committerMichal Nazarewicz <mina86@mina86.com>2022-12-23 14:15:33 +0100
commit28162ad97024f470e107dd224f07f1d6ca0fa642 (patch)
tree258c81d3a756329db87a00554044b23e78f574f0 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent5e656baf8bc832d3b77a1e49373352b3b2685fc0 (diff)
downloadrust-28162ad97024f470e107dd224f07f1d6ca0fa642.tar.gz
rust-28162ad97024f470e107dd224f07f1d6ca0fa642.zip
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 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions