Skip to content

Commit

Permalink
std::math: rename the Fma function as FMA
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jul 29, 2024
1 parent d6f9dab commit f5204da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/math/fma.jule
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ fn split(b: u64): (sign: u32, exp: i32, mantissa: u64) {
}

// Returns x * y + z, computed with only one rounding.
// (That is, Fma returns the fused multiply-add of x, y, and z.)
fn Fma(x: f64, y: f64, z: f64): f64 {
// (That is, FMA returns the fused multiply-add of x, y, and z.)
fn FMA(x: f64, y: f64, z: f64): f64 {
let (bx, by, bz) = F64Bits(x), F64Bits(y), F64Bits(z)

// inf or NaN or zero involved. At most one rounding will occur.
Expand Down

0 comments on commit f5204da

Please sign in to comment.