diff options
| author | okaneco <47607823+okaneco@users.noreply.github.com> | 2023-11-08 14:44:13 -0500 |
|---|---|---|
| committer | okaneco <47607823+okaneco@users.noreply.github.com> | 2023-11-08 14:53:49 -0500 |
| commit | d585eecb053b79ad2ef7034b8283bb684a3dfe5b (patch) | |
| tree | 12027d091ca564d6f47b23c0da7ac201a08a4d46 /compiler/rustc_codegen_gcc | |
| parent | 341efb10174bdd22912aae487917c9213255b20f (diff) | |
| download | rust-d585eecb053b79ad2ef7034b8283bb684a3dfe5b.tar.gz rust-d585eecb053b79ad2ef7034b8283bb684a3dfe5b.zip | |
Refactor `binary_search_by` to use conditional moves
Refactor the if/else checking on cmp::Ordering variants to a "branchless" reassignment of left and right. This change results in fewer branches and instructions.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
