Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit bdd1e03

Browse files
committed
fixup
1 parent c90d3e6 commit bdd1e03

File tree

2 files changed

+5
-4
lines changed
  • crates/compiler-builtins-smoke-test/src
  • src/math/generic

2 files changed

+5
-4
lines changed

crates/compiler-builtins-smoke-test/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![no_std]
88

99
#[allow(dead_code)]
10+
#[allow(unused_imports)]
1011
#[allow(clippy::all)] // We don't get `libm`'s list of `allow`s, so just ignore Clippy.
1112
#[path = "../../../src/math/mod.rs"]
1213
pub mod libm;

src/math/generic/fma.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ pub fn fma<F: Float>(x: F, y: F, z: F) -> F {
1010
todo!()
1111
}
1212

13-
pub fn fma_big<F: Float, B: Float>(x: F, y: F, z: F) -> F
13+
/// FMA implementation when there is a larger float type available.
14+
pub fn fma_big<F, B>(x: F, y: F, z: F) -> F
1415
where
15-
F: CastInto<B>,
16-
B: CastInto<F>,
16+
F: Float + CastInto<B>,
17+
B: Float + CastInto<F> + CastFrom<F>,
1718
B::Int: CastInto<i32>,
1819
i32: CastFrom<i32>,
19-
B: CastFrom<F>,
2020
{
2121
let one = IntTy::<B>::ONE;
2222

0 commit comments

Comments
 (0)