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.

Tuple Fields

0: __m256d

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

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

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

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)");

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)");

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

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

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

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more

If this function returns true, then it must be valid to reinterpret bits as &Self.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

Converts the given value to a String. Read more

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.