#[repr(C)]pub struct Xmm(pub [u8; 16]);Expand description
The 128 bits of one SSE (xmm) register.
Stored as raw little-endian bytes; the helpers read and build them as scalars or packed lanes.
Tuple Fields§
§0: [u8; 16]Implementations§
Source§impl Xmm
impl Xmm
Sourcepub fn from_bytes(bytes: [u8; 16]) -> Xmm
pub fn from_bytes(bytes: [u8; 16]) -> Xmm
Builds a register from raw little-endian bytes.
Sourcepub fn from_f32(value: f32) -> Xmm
pub fn from_f32(value: f32) -> Xmm
Builds a register with value in the low f32 lane and zeros elsewhere.
Sourcepub fn from_f64(value: f64) -> Xmm
pub fn from_f64(value: f64) -> Xmm
Builds a register with value in the low f64 lane and zeros elsewhere.
Sourcepub fn from_f32x4(lanes: [f32; 4]) -> Xmm
pub fn from_f32x4(lanes: [f32; 4]) -> Xmm
Builds a register from four packed f32 lanes.
Sourcepub fn from_f64x2(lanes: [f64; 2]) -> Xmm
pub fn from_f64x2(lanes: [f64; 2]) -> Xmm
Builds a register from two packed f64 lanes.
Trait Implementations§
impl Copy for Xmm
impl Eq for Xmm
impl StructuralPartialEq for Xmm
Auto Trait Implementations§
impl Freeze for Xmm
impl RefUnwindSafe for Xmm
impl Send for Xmm
impl Sync for Xmm
impl Unpin for Xmm
impl UnsafeUnpin for Xmm
impl UnwindSafe for Xmm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more