Struct safe_arch::m128i[][src]

#[repr(transparent)]
pub struct m128i(pub __m128i);
Expand description

The data for a 128-bit SSE register of integer data.

  • The exact layout to view the type as depends on the operation used.
  • From and Into impls are provided for all the relevant signed integer array types.
  • Formatting impls print as four i32 values just because they have to pick something. If you want an alternative you can turn it into an array and print as you like.

Tuple Fields

0: __m128i

Trait Implementations

Binary formats each i32.

let f = format!("{:b}", m128i::default());
assert_eq!(&f, "(0, 0, 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 i32.

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

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

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

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

LowerExp formats each i32.

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

LowerHex formats each i32.

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

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

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

Not a direct intrinsic, this is a cmp_eq_mask_i8_m128i and then a move_mask_i8_m128i.

This method tests for !=.

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

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

UpperHex formats each i32.

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

Unlike with the floating types, ints have absolute equality.

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.