devela::_dep::safe_arch

Function set_splat_m128

pub fn set_splat_m128(all: f32) -> m128
Available on crate feature dep_safe_arch only.
Expand description

Splats the value to all lanes.

let a = set_splat_m128(1.0).to_array();
let b = m128::from_array([1.0, 1.0, 1.0, 1.0]).to_array();
assert_eq!(a, b);