Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 6, 2025
1 parent c90d3e6 commit bdd1e03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions crates/compiler-builtins-smoke-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#![no_std]

#[allow(dead_code)]
#[allow(unused_imports)]
#[allow(clippy::all)] // We don't get `libm`'s list of `allow`s, so just ignore Clippy.
#[path = "../../../src/math/mod.rs"]
pub mod libm;
8 changes: 4 additions & 4 deletions src/math/generic/fma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ pub fn fma<F: Float>(x: F, y: F, z: F) -> F {
todo!()
}

pub fn fma_big<F: Float, B: Float>(x: F, y: F, z: F) -> F
/// FMA implementation when there is a larger float type available.
pub fn fma_big<F, B>(x: F, y: F, z: F) -> F
where
F: CastInto<B>,
B: CastInto<F>,
F: Float + CastInto<B>,
B: Float + CastInto<F> + CastFrom<F>,
B::Int: CastInto<i32>,
i32: CastFrom<i32>,
B: CastFrom<F>,
{
let one = IntTy::<B>::ONE;

Expand Down

0 comments on commit bdd1e03

Please sign in to comment.