diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2022-01-27 15:34:07 -0800 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2022-06-20 14:58:29 -0700 |
| commit | bded8fcfc0a0735071f41bec5d9a388e8c0c7c7c (patch) | |
| tree | 99e65708210ba90dc5045ab5e7e211a44be38b2d /compiler/rustc_codegen_llvm/src | |
| parent | b12708f7f40463b2131f0c47d1e8a4ffb543a422 (diff) | |
| download | rust-bded8fcfc0a0735071f41bec5d9a388e8c0c7c7c.tar.gz rust-bded8fcfc0a0735071f41bec5d9a388e8c0c7c7c.zip | |
Add `[f32]::sort_floats` and `[f64]::sort_floats`
It's inconvenient to sort a slice or Vec of floats, compared to sorting integers. To simplify numeric code, add a convenience method to `[f32]` and `[f64]` to sort them using `sort_unstable_by` with `total_cmp`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
