Debian Patches

Status for rust-libm/0.2.1-5

Patch Description Author Forwarded Bugs Origin Last update
features.patch no
fix-unused-result-error.patch commit c18c704856ffa8b3349401300e66796d4cc8d4f5

Fix build failure with latest nightly

diff --git a/src/math/pow.rs b/src/math/pow.rs
index c7fd0df..f79680a 100644
Jethro Beekman <jethro@fortanix.com> no 2021-06-24
x87-01-force-test-eval-runtime.patch commit 5672d6722919a6bdd9fbb386eec667fb091f4cbc

force test_near_pi in rem_pio2.rs to be evaluated at runtime not compiletime.

diff --git a/src/math/rem_pio2.rs b/src/math/rem_pio2.rs
index 46f7c38..f58fa35 100644
Peter Michael Green <plugwash@debian.org> no 2021-12-22
x87-02-fix-testcases.patch commit 8b0db9f5baacf87494547f23bb656c1903825baf

Fix testcases on x87

diff --git a/src/math/ceil.rs b/src/math/ceil.rs
index eda28b9..22d8929 100644
Peter Michael Green <plugwash@debian.org> no 2021-01-05
x87-03-use-force-eval.patch commit 16ce35bb191ed075dae3668257025feed2cf169f

Use force_eval instead of to_bits/from_bits combination,

Using to_bits/from_bits to force conversion to storage format
apparently doesn't work in release mode. Also add an architecture
conditional to avoid pessimising other architectures.

diff --git a/src/math/rem_pio2f.rs b/src/math/rem_pio2f.rs
index 4d4499b..3ce8f9a 100644
Peter Michael Green <plugwash@debian.org> no 2021-12-21
x87-04-fix-rem-pio2.patch commit fa70d9bda797b5a78b1fb9a6ed7b372935f14e6e

Add forced rounding to storage format for x87 to rem_pio2.rs as well.

diff --git a/src/math/rem_pio2.rs b/src/math/rem_pio2.rs
index f58fa35..4ac9415 100644
Peter Michael Green <plugwash@debian.org> no 2021-12-21
x87-05-round-to-storage-format-in.tests.patch This patch is based on the commit below which has been submitted
as part of https://github.com/rust-lang/libm/pull/249
adapted for use in the Debian package.

commit db80cfb90663284dd351f85284cb2a1b295d4043

round to storage format in some tests before comparison to prevent spurious errors on x87.

===================================================================
Peter Michael Green <plugwash@debian.org> no 2021-12-22
x87-06-only-allow-x87-result-on-x87.patch commit 1606eeae5c1a916adb926d2972ab63a781b1b670

only allow x87-specific result in j1f.rs test on x87

diff --git a/src/math/j1f.rs b/src/math/j1f.rs
index 225b719..775ff2b 100644
Peter Michael Green <plugwash@debian.org> no 2022-01-04
x87-07-allow-force-eval-to-produce-result.patch This patch is based on the commit described below, which has
been submitted as part of https://github.com/rust-lang/libm/pull/249
adapted for use in the Debian package.

commit 9b6f469d5b3e35f793800da1c58070da2478f76e

allow force_eval! to produce a result and use that result to more explicitly force rounding on x87.

===================================================================
Peter Michael Green <plugwash@debian.org> no 2022-01-04
x87-08-fix-round-and-roundf.patch This patch contains fixes for round and roundf that are similar
to those made to other functions in https://github.com/rust-lang/libm/pull/249
they are not included in the PR because since the latest release
upstream reimplemented found and roundf in terms of trunc and truncf.

===================================================================
no

All known versions for source package 'rust-libm'

Links