[go: up one dir, main page]

Trait MulAdd

Source
pub trait MulAdd<A = Self, B = Self> {
    type Output;

    // Required method
    fn mul_add(self, a: A, b: B) -> Self::Output;
}

Required Associated Types§

Source

type Output

The resulting type after applying the fused multiply-add.

Required Methods§

Source

fn mul_add(self, a: A, b: B) -> Self::Output

Performs the fused multiply-add operation.

Implementations on Foreign Types§

Source§

impl MulAdd for i32

Source§

type Output = i32

Source§

fn mul_add(self, a: i32, b: i32) -> Self::Output

Source§

impl MulAdd for u32

Source§

type Output = u32

Source§

fn mul_add(self, a: u32, b: u32) -> Self::Output

Implementors§