Struct safe_arch::m256 [−][src]
#[repr(transparent)]pub struct m256(pub __m256);
Expand description
The data for a 256-bit AVX register of eight f32
lanes.
- This is very similar to having
[f32; 8]
. 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: __m256
Implementations
Transmutes the m256
to an array.
Same as m.into()
, just lets you be more explicit about what’s happening.
Transmutes an array into m256
.
Same as m256::from(arr)
, it just lets you be more explicit about what’s
happening.
Converts into the bit patterns of these floats ([u32;8]
).
Like f32::to_bits
, but all eight lanes at once.
Trait Implementations
Binary formats each float’s bit pattern (via f32::to_bits
).
let f = format!("{:b}", m256::default());
assert_eq!(&f, "(0, 0, 0, 0, 0, 0, 0, 0)");
LowerHex formats each float’s bit pattern (via f32::to_bits
).
let f = format!("{:x}", m256::default());
assert_eq!(&f, "(0, 0, 0, 0, 0, 0, 0, 0)");
Octal formats each float’s bit pattern (via f32::to_bits
).
let f = format!("{:o}", m256::default());
assert_eq!(&f, "(0, 0, 0, 0, 0, 0, 0, 0)");
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 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
UpperHex formats each float’s bit pattern (via f32::to_bits
).
let f = format!("{:X}", m256::default());
assert_eq!(&f, "(0, 0, 0, 0, 0, 0, 0, 0)");
Auto Trait Implementations
impl RefUnwindSafe for m256
impl UnwindSafe for m256
Blanket Implementations
Mutably borrows from an owned value. Read more
type Bits = T
type Bits = T
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
.