Trevor Gross 10ba25f7ce fmaximum,fminimum: Fix incorrect result and add tests
After adding tests, the current implementation for fminimum fails when
provided a negative zero and NaN as inputs:

    ---- math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f64 stdout ----

    thread 'math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f64' panicked at libm/src/math/fminimum_fmaximum_num.rs:240:13:
    fmaximum_num(-0x0p+0, NaN)
    l: NaN (0x7ff8000000000000)
    r: -0.0 (0x8000000000000000)

    ---- math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f32 stdout ----

    thread 'math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f32' panicked at libm/src/math/fminimum_fmaximum_num.rs:240:13:
    fmaximum_num(-0x0p+0, NaN)
    l: NaN (0x7fc00000)
    r: -0.0 (0x80000000)

Add more thorough spec tests for these functions and correct the
implementations.

Canonicalization is also moved to a trait method to centralize
documentation about what it does and doesn't do.
2025-06-13 15:36:58 +00:00
..
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-29 19:09:50 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-29 18:15:02 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 19:05:49 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00
2025-04-19 17:20:24 -04:00