Struct safe_arch::m128[][src]

#[repr(transparent)]
pub struct m128(pub __m128);
Expand description

The data for a 128-bit SSE register of four f32 lanes.

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

Tuple Fields

0: __m128

Implementations

Transmutes the m128 to an array.

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

Transmutes an array into m128.

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

Converts into the bit patterns of these floats ([u32;4]).

Like f32::to_bits, but all four lanes at once.

Converts from the bit patterns of these floats ([u32;4]).

Like f32::from_bits, but all four 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 float’s bit pattern (via f32::to_bits).

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 float.

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

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

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 float.

LowerHex formats each float’s bit pattern (via f32::to_bits).

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-1s bit pattern.

The resulting type after applying the ! operator.

Octal formats each float’s bit pattern (via f32::to_bits).

Not a direct intrinsic, this is a cmp_eq_mask and then a move_mask.

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 float.

UpperHex formats each float’s bit pattern (via f32::to_bits).

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.