Enum VectorSize
pub enum VectorSize {
Size8x8,
Size8x16,
Size16x4,
Size16x8,
Size32x2,
Size32x4,
Size64x2,
}
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§
§impl VectorSize
impl VectorSize
pub 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.
pub 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.
pub 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.
pub fn is_128bits(&self) -> bool
pub fn is_128bits(&self) -> bool
Returns true if the VectorSize is 128-bits.
pub 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.
pub 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§
§impl Clone for VectorSize
impl Clone for VectorSize
§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 more§impl Debug for VectorSize
impl Debug for VectorSize
§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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more