libm
libm copied to clipboard
A port of MUSL's libm to Rust.
Split from https://github.com/rust-lang/libm/pull/390 since I think the `f128` version will be trickier.
See https://github.com/rust-lang/rust/issues/136459 for context.
As noted in https://github.com/rust-lang/libm/pull/415#issuecomment-2587458660, our implementations currently do not align with musl/MPFR. There are a couple different specs to follow here. N3047 (C23) states: > Ideally, fmax would be sensitive...
Sometimes the random generators create inputs that are far outside allowed ULP (these functions are very imprecise anyway). I believe Nextest allows specifying that tests matching a pattern can be...
For aarch64 and arm64ec with Neon, add assembly versions of the following: * `ceil` * `ceilf` * `fabs` * `fabsf` * `floor` * `floorf` * `fma` * `fmaf` * `round`...
For the next release, these should return an `Option` rather than a sentinel value.
Just making a list of failures that should be turned into xfails or fixed. My loose plan is to put all of these into a single test file and assert...
Currently the test run looks like this: ```sh # Test once without intrinsics $cmd # Exclude the macros and utile crates from the rest of the tests to save CI...