rust/library/core/src/char
Michal Nazarewicz 28162ad970 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
2022-12-23 14:15:33 +01:00
..
convert.rs Split out from_u32_unchecked from const_char_convert 2022-09-29 14:26:24 +02:00
decode.rs char: µoptimise UTF-16 surrogates decoding 2022-12-23 14:15:33 +01:00
methods.rs Rollup merge of #102470 - est31:stabilize_const_char_convert, r=joshtriplett 2022-11-14 19:26:15 +01:00
mod.rs Stabilize const_char_convert 2022-09-29 14:26:56 +02:00