#[repr(transparent)]
pub struct u32x8(_);
Available on curve25519_dalek_backend="simd" only.

Implementations§

source§

impl u32x8

source

pub fn shl<const N: i32>(self) -> Self

source

pub fn shr<const N: i32>(self) -> Self

source

pub fn extract<const N: i32>(self) -> u32

source§

impl u32x8

source

pub const fn new_const( x0: u32, x1: u32, x2: u32, x3: u32, x4: u32, x5: u32, x6: u32, x7: u32 ) -> Self

A constified variant of new.

Should only be called from const contexts. At runtime new is going to be faster.

source

pub const fn splat_const<const N: u32>() -> Self

A constified variant of splat.

Should only be called from const contexts. At runtime splat is going to be faster.

source

pub fn new( x0: u32, x1: u32, x2: u32, x3: u32, x4: u32, x5: u32, x6: u32, x7: u32 ) -> u32x8

Constructs a new instance.

source

pub fn splat(x: u32) -> u32x8

Constructs a new instance with all of the elements initialized to the given value.

source§

impl u32x8

source

pub fn mul32(self, rhs: u32x8) -> u64x4

Multiplies the low unsigned 32-bits from each packed 64-bit element and returns the unsigned 64-bit results.

(This ignores the upper 32-bits from each packed 64-bits!)

Trait Implementations§

source§

impl Add<u32x8> for u32x8

§

type Output = u32x8

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32x8) -> Self

Performs the + operation. Read more
source§

impl AddAssign<u32x8> for u32x8

source§

fn add_assign(&mut self, rhs: u32x8)

Performs the += operation. Read more
source§

impl BitAnd<u32x8> for u32x8

§

type Output = u32x8

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: u32x8) -> Self

Performs the & operation. Read more
source§

impl BitAndAssign<u32x8> for u32x8

source§

fn bitand_assign(&mut self, rhs: u32x8)

Performs the &= operation. Read more
source§

impl BitXor<u32x8> for u32x8

§

type Output = u32x8

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: u32x8) -> Self

Performs the ^ operation. Read more
source§

impl BitXorAssign<u32x8> for u32x8

source§

fn bitxor_assign(&mut self, rhs: u32x8)

Performs the ^= operation. Read more
source§

impl Clone for u32x8

source§

fn clone(&self) -> u32x8

Returns a copy 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 u32x8

source§

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

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

impl From<__m256i> for u32x8

source§

fn from(value: __m256i) -> u32x8

Converts to this type from the input type.
source§

impl From<u32x8> for __m256i

source§

fn from(value: u32x8) -> __m256i

Converts to this type from the input type.
source§

impl From<u64x4> for u32x8

source§

fn from(value: u64x4) -> u32x8

Converts to this type from the input type.
source§

impl PartialEq<u32x8> for u32x8

source§

fn eq(&self, rhs: &u32x8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Sub<u32x8> for u32x8

§

type Output = u32x8

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32x8) -> Self

Performs the - operation. Read more
source§

impl Copy for u32x8

source§

impl Eq for u32x8

Auto Trait Implementations§

§

impl RefUnwindSafe for u32x8

§

impl Send for u32x8

§

impl Sync for u32x8

§

impl Unpin for u32x8

§

impl UnwindSafe for u32x8

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.