summary refs log tree commit diff
path: root/library/std/src/f16.rs
AgeCommit message (Collapse)AuthorLines
2024-11-01float types: move copysign, abs, signum to libcoreRalf Jung-97/+0
2024-10-15Make some float methods unstable `const fn`Eduardo Sánchez Muñoz-3/+6
Some float methods are now `const fn` under the `const_float_methods` feature gate. In order to support `min`, `max`, `abs` and `copysign`, the implementation of some intrinsics had to be moved from Miri to rustc_const_eval.
2024-08-28copysign with sign being a NaN is non-portableRalf Jung-3/+8
2024-08-26also update copysign docsRalf Jung-5/+5
2024-08-01Add math functions for `f16` and `f128`Trevor Gross-9/+1287
This adds missing functions for math operations on the new float types. Platform support is pretty spotty at this point, since even platforms with generally good support can be missing math functions. `std/build.rs` is updated to reflect this.
2024-07-30Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68bors-1/+0
Bump bootstrap compiler to new beta https://forge.rust-lang.org/release/process.html#master-bootstrap-update-t-2-day-tuesday
2024-07-29Reformat `use` declarations.Nicholas Nethercote-3/+3
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-28step cfg(bootstrap)Mark Rousskov-1/+0
2024-06-25Add more `f16` and `f128` library functions and constantsTrevor Gross-0/+29
This adds everything that was directly or transitively blocked on const arithmetic for these types, which was recently merged. Since const arithmetic is recent, most of these need to be gated by `bootstrap`. Anything that relies on intrinsics that are still missing is excluded.
2024-05-16Add `powi` to `f16` and `f128`Trevor Gross-0/+24
This will unblock adding support to compiler_builtins (<https://github.com/rust-lang/compiler-builtins/pull/614>), which will then unblock adding tests for these new functions.
2024-04-10Add basic f16 and f128 modulesTrevor Gross-0/+11
Create empty modules so `rustdoc` has someplace to link to for these types.