SimdFloat32

Trait SimdFloat32 

Source
pub trait SimdFloat32: SimdFloat<Scalar = f32, HorizontalAddScalar = f32> + SimdTransmuteF32 {
    // Required methods
    fn bitcast_i32(self) -> <Self::Engine as Simd>::Vi32;
    fn cast_i32(self) -> <Self::Engine as Simd>::Vi32;
    fn fast_inverse(self) -> Self;
}
Expand description

Operations shared by 32 bit float types

Required Methods§

Source

fn bitcast_i32(self) -> <Self::Engine as Simd>::Vi32

Bit cast to i32. This function is only used for compilation and does not generate any instructions, thus it has zero latency.

Source

fn cast_i32(self) -> <Self::Engine as Simd>::Vi32

Element-wise cast to i32 (rounded, not floored). Note, this may cause undefined behavior when casting from numbers outside the range of i32. E.g. a very large positive float may become i32::MIN.

Source

fn fast_inverse(self) -> Self

Element-wise fast reciprocal (1.0 / x)

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§