Skip to main content

LogfBackend

Trait LogfBackend 

Source
pub(crate) trait LogfBackend {
    const HAS_FMA: bool;

    // Required methods
    fn fmaf(&self, x: f32, y: f32, z: f32) -> f32;
    fn fma(&self, x: f64, y: f64, z: f64) -> f64;
    fn polyeval3(&self, x: f64, a0: f64, a1: f64, a2: f64) -> f64;
}

Required Associated Constants§

Required Methods§

Source

fn fmaf(&self, x: f32, y: f32, z: f32) -> f32

Source

fn fma(&self, x: f64, y: f64, z: f64) -> f64

Source

fn polyeval3(&self, x: f64, a0: f64, a1: f64, a2: f64) -> f64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl LogfBackend for FmaLogfBackend

Available on x86 or x86-64 only.
Source§

const HAS_FMA: bool = true

Source§

impl LogfBackend for GenLogfBackend

Source§

const HAS_FMA: bool = false