Aligned130

Struct Aligned130 

Source
pub(super) struct Aligned130(pub(super) __m256i);
Expand description

A 130-bit integer aligned across five 26-bit limbs.

The top three 32-bit words of the underlying 256-bit vector are ignored.

Tuple Fields§

§0: __m256i

Implementations§

Source§

impl Aligned130

Source

pub(super) unsafe fn from_block(block: &Block) -> Self

Available with target feature avx2 only.

Aligns a 16-byte Poly1305 block at 26-bit boundaries within 32-bit words, and sets the high bit.

Source

pub(super) unsafe fn from_partial_block(block: &Block) -> Self

Available with target feature avx2 only.

Aligns a partial Poly1305 block at 26-bit boundaries within 32-bit words.

Assumes that the high bit is already correctly set for the partial block.

Source

unsafe fn new(x: __m256i) -> Self

Available with target feature avx2 only.

Splits a 130-bit integer into five 26-bit limbs.

Trait Implementations§

Source§

impl Add<Aligned130> for AdditionKey

Source§

fn add(self, x: Aligned130) -> IntegerTag

Computes x + k mod 2^128

Source§

type Output = IntegerTag

The resulting type after applying the + operator.
Source§

impl Add<Aligned130> for Aligned2x130

Source§

fn add(self, other: Aligned130) -> Aligned2x130

Adds other into the lower integer of self.

Source§

type Output = Aligned2x130

The resulting type after applying the + operator.
Source§

impl Add for Aligned130

Source§

type Output = Aligned130

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Clone for Aligned130

Source§

fn clone(&self) -> Aligned130

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 Aligned130

Source§

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

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

impl Display for Aligned130

Source§

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

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

impl From<Aligned130> for PrecomputedMultiplier

Source§

fn from(r: Aligned130) -> Self

Converts to this type from the input type.
Source§

impl Mul<PrecomputedMultiplier> for Aligned130

Source§

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

Multiplies 2 values using lazy reduction.

Context switches from 32 bit to 64 bit.

Source§

type Output = Unreduced130

The resulting type after applying the * operator.
Source§

impl Copy for Aligned130

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.