<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/compiler-builtins/libm/src/math/generic, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-06-13T15:36:58+00:00</updated>
<entry>
<title>fmaximum,fminimum: Fix incorrect result and add tests</title>
<updated>2025-06-13T15:36:58+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2025-06-02T17:20:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=10ba25f7ce4b98ec0958ad7ce52bc2585f6fbb55'/>
<id>urn:sha1:10ba25f7ce4b98ec0958ad7ce52bc2585f6fbb55</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>cleanup: Use `x.biteq(y)` rather than `x.to_bits() == y.to_bits()`</title>
<updated>2025-06-02T16:10:49+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2025-06-02T16:10:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e83ca863412a950f19fbc4e8fc632f19107dd0a2'/>
<id>urn:sha1:e83ca863412a950f19fbc4e8fc632f19107dd0a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace `super::super` with `crate::support` where possible</title>
<updated>2025-05-05T06:31:52+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2025-05-05T05:40:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=687902c1af4651ca0db9614c0a1ba6431cff266a'/>
<id>urn:sha1:687902c1af4651ca0db9614c0a1ba6431cff266a</id>
<content type='text'>
Since `crate::support` now works in both `compiler-builtins` and `libm`,
we can get rid of some of these unusual paths.
</content>
</entry>
<entry>
<title>Refactor the fma modules</title>
<updated>2025-04-29T23:09:50+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2025-04-29T20:52:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=caf337d46742aca1705c3254e8d45d7238a8435c'/>
<id>urn:sha1:caf337d46742aca1705c3254e8d45d7238a8435c</id>
<content type='text'>
Move implementations to `generic/` like the other functions. This also
allows us to combine the `fma` and `fma_wide` modules.
</content>
</entry>
<entry>
<title>Move `fma` implementations to `mod generic`</title>
<updated>2025-04-29T23:09:50+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2025-04-29T20:50:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6d83a3226f1401d777da0a91019caf2c3191b685'/>
<id>urn:sha1:6d83a3226f1401d777da0a91019caf2c3191b685</id>
<content type='text'>
This will not build correctly, the move is done as a separate step from
the rest of refactoring so git's history is cleaner.
</content>
</entry>
<entry>
<title>Reimplement the generic fmod</title>
<updated>2025-04-22T04:53:56+00:00</updated>
<author>
<name>quaternic</name>
<email>57393910+quaternic@users.noreply.github.com</email>
</author>
<published>2025-04-22T00:56:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e075e9fbde213c5fb0232c7a477f4f6dc199fc3d'/>
<id>urn:sha1:e075e9fbde213c5fb0232c7a477f4f6dc199fc3d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Run `cargo fmt` on all projects</title>
<updated>2025-04-19T23:05:49+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2025-04-19T22:39:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8d70be87e6e8f88fdad0f469b894a3ec9a87d3ce'/>
<id>urn:sha1:8d70be87e6e8f88fdad0f469b894a3ec9a87d3ce</id>
<content type='text'>
Apply the same formatting rules to both `libm` and `compiler-builtins`.
</content>
</entry>
<entry>
<title>libm: Flatten the `libm/libm` directory</title>
<updated>2025-04-19T21:20:24+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2025-04-19T21:09:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8b8bd8a0fd75e43a9b282284b849e651828ceec2'/>
<id>urn:sha1:8b8bd8a0fd75e43a9b282284b849e651828ceec2</id>
<content type='text'>
</content>
</entry>
</feed>
