about summary refs log tree commit diff
path: root/library/std/src/f128.rs
AgeCommit message (Collapse)AuthorLines
2025-01-28Document powf and powi calls that always return 1.0Marijn Schouten-1/+17
2025-01-05Add doc aliases for `libm` and IEEE namesTrevor Gross-0/+2
Searching "fma" in the Rust documentation returns results for `intrinsics::fma*`, but does not point to the user-facing `mul_add`. Add aliases for `fma*` and the IEEE operation name `fusedMultiplyAdd`. Add the IEEE name to `sqrt` as well, `squareRoot`.
2024-11-01float types: move copysign, abs, signum to libcoreRalf Jung-98/+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-10/+1290
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/+30
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.