Aligned4x130

Struct Aligned4x130 

Source
pub(super) struct Aligned4x130 {
    v0: __m256i,
    v1: __m256i,
    v2: __m256i,
}
Expand description

Four 130-bit integers aligned across five 26-bit limbs each.

Unlike Aligned2x130 which wraps two Aligned130s, this struct represents the four integers as 20 limbs spread across three 256-bit vectors.

Fields§

§v0: __m256i§v1: __m256i§v2: __m256i

Implementations§

Source§

impl Aligned4x130

Source

pub(super) unsafe fn from_blocks(src: &[Block; 4]) -> Self

Available with target feature avx2 only.

Aligns four 16-byte Poly1305 blocks at 26-bit boundaries within 32-bit words, and sets the high bit for each block.

§Panics

Panics if src.len() < 64.

Source

pub(super) unsafe fn from_par_blocks(src: &ParBlocks<State>) -> Self

Available with target feature avx2 only.

Aligns four 16-byte Poly1305 blocks at 26-bit boundaries within 32-bit words, and sets the high bit for each block.

Source

unsafe fn from_loaded_blocks(blocks_01: __m256i, blocks_23: __m256i) -> Self

Available with target feature avx2 only.

Aligns four 16-byte Poly1305 blocks at 26-bit boundaries within 32-bit words, and sets the high bit for each block.

The four blocks must be in the following 32-bit word layout: [b33, b32, b31, b30, b23, b22, b21, b20] [b13, b12, b11, b10, b03, b02, b01, b00]

Trait Implementations§

Source§

impl Add for Aligned4x130

Source§

type Output = Aligned4x130

The resulting type after applying the + operator.
Source§

fn add(self, other: Aligned4x130) -> Aligned4x130

Performs the + operation. Read more
Source§

impl Clone for Aligned4x130

Source§

fn clone(&self) -> Aligned4x130

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Aligned4x130

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Aligned4x130

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Mul<PrecomputedMultiplier> for &Aligned4x130

Source§

type Output = Unreduced4x130

The resulting type after applying the * operator.
Source§

fn mul(self, other: PrecomputedMultiplier) -> Unreduced4x130

Performs the * operation. Read more
Source§

impl Mul<SpacedMultiplier4x130> for Aligned4x130

Source§

type Output = Unreduced4x130

The resulting type after applying the * operator.
Source§

fn mul(self, m: SpacedMultiplier4x130) -> Unreduced4x130

Performs the * operation. Read more
Source§

impl Copy for Aligned4x130

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.