mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
782da867c8
Implement `signum` with `Ord` Rather than needing to do things like #105840 for `signum` too, might as well just implement that method using `Ord`, since it's doing the same "I need `-1`/`0`/`+1`" behaviour that `cmp` is already doing. This also seems to slightly improve the assembly: <https://rust.godbolt.org/z/5oEEqbxK1>