pub enum VectorSize {
Size8x8,
Size8x16,
Size16x4,
Size16x8,
Size32x2,
Size32x4,
Size64x2,
}
Available on crate feature
arm64
only.Expand description
Type used to communicate the size of a vector operand.
Variants§
Size8x8
8-bit, 8 lanes.
Size8x16
8 bit, 16 lanes.
Size16x4
16-bit, 4 lanes.
Size16x8
16-bit, 8 lanes.
Size32x2
32-bit, 2 lanes.
Size32x4
32-bit, 4 lanes.
Size64x2
64-bit, 2 lanes.
Implementations§
Source§impl VectorSize
impl VectorSize
Sourcepub fn from_lane_size(size: ScalarSize, is_128bit: bool) -> VectorSize
pub fn from_lane_size(size: ScalarSize, is_128bit: bool) -> VectorSize
Get the vector operand size with the given scalar size as lane size.
Sourcepub fn operand_size(&self) -> OperandSize
pub fn operand_size(&self) -> OperandSize
Get the integer operand size that corresponds to a lane of a vector with a certain size.
Sourcepub fn lane_size(&self) -> ScalarSize
pub fn lane_size(&self) -> ScalarSize
Get the scalar operand size that corresponds to a lane of a vector with a certain size.
Sourcepub fn is_128bits(&self) -> bool
pub fn is_128bits(&self) -> bool
Returns true if the VectorSize is 128-bits.
Sourcepub fn enc_size(&self) -> (u32, u32)
pub fn enc_size(&self) -> (u32, u32)
Return the encoding bits that are used by some SIMD instructions for a particular operand size.
Sourcepub fn enc_float_size(&self) -> u32
pub fn enc_float_size(&self) -> u32
Return the encoding bit that is used by some floating-point SIMD instructions for a particular operand size.
Trait Implementations§
Source§impl Clone for VectorSize
impl Clone for VectorSize
Source§fn clone(&self) -> VectorSize
fn clone(&self) -> VectorSize
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VectorSize
impl Debug for VectorSize
Source§impl PartialEq for VectorSize
impl PartialEq for VectorSize
impl Copy for VectorSize
impl Eq for VectorSize
impl StructuralPartialEq for VectorSize
Auto Trait Implementations§
impl Freeze for VectorSize
impl RefUnwindSafe for VectorSize
impl Send for VectorSize
impl Sync for VectorSize
impl Unpin for VectorSize
impl UnwindSafe for VectorSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.