Struct safe_arch::m256d[][src]

#[repr(transparent)]
pub struct m256d(pub __m256d);
Expand description

The data for a 256-bit AVX register of four f64 values.

  • This is very similar to having [f64; 4]. The main difference is that it’s aligned to 32 instead of just 4, and of course you can perform various intrinsic operations on it.

Implementations

Transmutes the m256d to an array.

Same as m.into(), just lets you be more explicit about what’s happening.

Transmutes an array into m256d.

Same as m256d::from(arr), it just lets you be more explicit about what’s happening.

Converts into the bit patterns of these doubles ([u64;4]).

Like f64::to_bits, but both lanes at once.

Converts from the bit patterns of these doubles ([u64;4]).

Like f64::from_bits, but both lanes at once.

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Binary formats each double’s bit pattern (via f64::to_bits).

let f = format!("{:b}", m256d::default());
assert_eq!(&f, "(0, 0)");

The resulting type after applying the & operator.

Performs the & operation. Read more

Performs the &= operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

Performs the |= operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

Performs the ^= operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Debug formats each double.

let f = format!("{:?}", m256d::default());
assert_eq!(&f, "m256d(0.0, 0.0)");

Returns the “default value” for a type. Read more

Display formats each double, and leaves the type name off of the font.

let f = format!("{}", m256d::default());
assert_eq!(&f, "(0, 0)");

The resulting type after applying the / operator.

Performs the / operation. Read more

Performs the /= operation. Read more

Performs the conversion.

Performs the conversion.

LowerExp formats each double.

let f = format!("{:e}", m256d::default());
assert_eq!(&f, "(0e0, 0e0)");

LowerHex formats each double’s bit pattern (via f64::to_bits).

let f = format!("{:x}", m256d::default());
assert_eq!(&f, "(0, 0)");

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

The resulting type after applying the - operator.

Performs the unary - operation. Read more

Not a direct intrinsic, but it’s very useful and the implementation is simple enough.

Negates the bits by performing an xor with an all-ones bit pattern.

The resulting type after applying the ! operator.

Octal formats each double’s bit pattern (via f64::to_bits).

let f = format!("{:o}", m256d::default());
assert_eq!(&f, "(0, 0)");

Performs a comparison to get a mask, then moves the mask and checks for all true.

This method tests for !=.

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

Convert the inner type into the wrapper type.

Convert a reference to the inner type into a reference to the wrapper type. Read more

Convert a mutable reference to the inner type into a mutable reference to the wrapper type. Read more

Convert a slice to the inner type into a slice to the wrapper type.

Convert a mutable slice to the inner type into a mutable slice to the wrapper type. Read more

Convert the wrapper type into the inner type.

Convert a reference to the wrapper type into a reference to the inner type. Read more

Convert a mutable reference to the wrapper type into a mutable reference to the inner type. Read more

Convert a slice to the wrapped type into a slice to the inner type.

Convert a mutable slice to the wrapped type into a mutable slice to the inner type. Read more

UpperExp formats each double.

let f = format!("{:E}", m256d::default());
assert_eq!(&f, "(0E0, 0E0)");

UpperHex formats each double’s bit pattern (via f64::to_bits).

let f = format!("{:X}", m256d::default());
assert_eq!(&f, "(0, 0)");

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.