Crate safe_arch
dep_safe_arch
only.Expand description
safe_arch
Exposes arch-specific intrinsics as safe functions.
A crate that safely exposes arch intrinsics via #[cfg()]
.
safe_arch
lets you safely use CPU intrinsics. Those things in the
core::arch
modules. It works purely via #[cfg()]
and
compile time CPU feature declaration. If you want to check for a feature at
runtime and then call an intrinsic or use a fallback path based on that then
this crate is sadly not for you.
SIMD register types are “newtype’d” so that better trait impls can be given
to them, but the inner value is a pub
field so feel free to just grab it
out if you need to. Trait impls of the newtypes include: Default
(zeroed),
From
/Into
of appropriate data types, and appropriate operator
overloading.
- Most intrinsics (like addition and multiplication) are totally safe to use as long as the CPU feature is available. In this case, what you get is 1:1 with the actual intrinsic.
- Some intrinsics take a pointer of an assumed minimum alignment and
validity span. For these, the
safe_arch
function takes a reference of an appropriate type to uphold safety.- Try the bytemuck crate (and turn on the
bytemuck
feature of this crate) if you want help safely casting between reference types.
- Try the bytemuck crate (and turn on the
- Some intrinsics are not safe unless you’re very careful about how you use them, such as the streaming operations requiring you to use them in combination with an appropriate memory fence. Those operations aren’t exposed here.
- Some intrinsics mess with the processor state, such as changing the floating point flags, saving and loading special register state, and so on. LLVM doesn’t really support you messing with that within a high level language, so those operations aren’t exposed here. Use assembly or something if you want to do that.
§Naming Conventions
The safe_arch
crate does not simply use the “official” names for each
intrinsic, because the official names are generally poor. Instead, the
operations have been given better names that makes things hopefully easier
to understand then you’re reading the code.
For a full explanation of the naming used, see the Naming Conventions page.
§Current Support
x86
/x86_64
(Intel, AMD, etc)- 128-bit:
sse
,sse2
,sse3
,ssse3
,sse4.1
,sse4.2
- 256-bit:
avx
,avx2
- Other:
adx
,aes
,bmi1
,bmi2
,fma
,lzcnt
,pclmulqdq
,popcnt
,rdrand
,rdseed
- 128-bit:
§Compile Time CPU Target Features
At the time of me writing this, Rust enables the sse
and sse2
CPU
features by default for all i686
(x86) and x86_64
builds. Those CPU
features are built into the design of x86_64
, and you’d need a super old
x86
CPU for it to not support at least sse
and sse2
, so they’re a safe
bet for the language to enable all the time. In fact, because the standard
library is compiled with them enabled, simply trying to disable those
features would actually cause ABI issues and fill your program with UB
(link).
If you want additional CPU features available at compile time you’ll have to
enable them with an additional arg to rustc
. For a feature named name
you pass -C target-feature=+name
, such as -C target-feature=+sse3
for
sse3
.
You can alternately enable all target features of the current CPU with -C target-cpu=native
. This is primarily of use if you’re building a program
you’ll only run on your own system.
It’s sometimes hard to know if your target platform will support a given
feature set, but the Steam Hardware Survey is generally
taken as a guide to what you can expect people to have available. If you
click “Other Settings” it’ll expand into a list of CPU target features and
how common they are. These days, it seems that sse3
can be safely assumed,
and ssse3
, sse4.1
, and sse4.2
are pretty safe bets as well. The stuff
above 128-bit isn’t as common yet, give it another few years.
Please note that executing a program on a CPU that doesn’t support the target features it was compiles for is Undefined Behavior.
Currently, Rust doesn’t actually support an easy way for you to check that a
feature enabled at compile time is actually available at runtime. There is
the “feature_detected” family of macros, but if you
enable a feature they will evaluate to a constant true
instead of actually
deferring the check for the feature to runtime. This means that, if you
did want a check at the start of your program, to confirm that all the
assumed features are present and error out when the assumptions don’t hold,
you can’t use that macro. You gotta use CPUID and check manually. rip.
Hopefully we can make that process easier in a future version of this crate.
§A Note On Working With Cfg
There’s two main ways to use cfg
:
- Via an attribute placed on an item, block, or expression:
#[cfg(debug_assertions)] println!("hello");
- Via a macro used within an expression position:
if cfg!(debug_assertions) { println!("hello"); }
The difference might seem small but it’s actually very important:
- The attribute form will include code or not before deciding if all the items named and so forth really exist or not. This means that code that is configured via attribute can safely name things that don’t always exist as long as the things they name do exist whenever that code is configured into the build.
- The macro form will include the configured code no matter what, and then
the macro resolves to a constant
true
orfalse
and the compiler uses dead code elimination to cut out the path not taken.
This crate uses cfg
via the attribute, so the functions it exposes don’t
exist at all when the appropriate CPU target features aren’t enabled.
Accordingly, if you plan to call this crate or not depending on what
features are enabled in the build you’ll also need to control your use of
this crate via cfg attribute, not cfg macro.
Modules§
- naming_
conventions - An explanation of the crate’s naming conventions.
Macros§
- cmp_op
- Turns a comparison operator token to the correct constant value.
- round_
op - Turns a round operator token to the correct constant value.
Structs§
- m128
- The data for a 128-bit SSE register of four
f32
lanes. - m256
- The data for a 256-bit AVX register of eight
f32
lanes. - m128d
- The data for a 128-bit SSE register of two
f64
values. - m128i
- The data for a 128-bit SSE register of integer data.
- m256d
- The data for a 256-bit AVX register of four
f64
values. - m256i
- The data for a 256-bit AVX register of integer data.
Constants§
- STR_
CMP_ BIT_ MASK - Return the bitwise mask of matches.
- STR_
CMP_ EQ_ ANY - Matches when any haystack character equals any needle character, regardless of position.
- STR_
CMP_ EQ_ EACH - Matches when a character position in the needle is equal to the character at the same position in the haystack.
- STR_
CMP_ EQ_ ORDERED - Matches when the complete needle string is a substring somewhere in the haystack.
- STR_
CMP_ FIRST_ MATCH - Return the index of the first match found.
- STR_
CMP_ I8 - string segment elements are i8 values
- STR_
CMP_ I16 - string segment elements are i16 values
- STR_
CMP_ LAST_ MATCH - Return the index of the last match found.
- STR_
CMP_ RANGES - Interprets consecutive pairs of characters in the needle as
(low..=high)
ranges to compare each haystack character to. - STR_
CMP_ U8 - string segment elements are u8 values
- STR_
CMP_ U16 - string segment elements are u16 values
- STR_
CMP_ UNIT_ MASK - Return the lanewise mask of matches.
Functions§
- abs_
i8_ m128i - Lanewise absolute value with lanes as
i8
. - abs_
i8_ m256i - Absolute value of
i8
lanes. - abs_
i16_ m128i - Lanewise absolute value with lanes as
i16
. - abs_
i16_ m256i - Absolute value of
i16
lanes. - abs_
i32_ m128i - Lanewise absolute value with lanes as
i32
. - abs_
i32_ m256i - Absolute value of
i32
lanes. - add_
carry_ u32 - Add two
u32
with a carry value. - add_
carry_ u64 - Add two
u64
with a carry value. - add_
horizontal_ i16_ m128i - Add horizontal pairs of
i16
values, pack the outputs asa
thenb
. - add_
horizontal_ i16_ m256i - Horizontal
a + b
with lanes asi16
. - add_
horizontal_ i32_ m128i - Add horizontal pairs of
i32
values, pack the outputs asa
thenb
. - add_
horizontal_ i32_ m256i - Horizontal
a + b
with lanes asi32
. - add_
horizontal_ m128 - Add each lane horizontally, pack the outputs as
a
thenb
. - add_
horizontal_ m256 - Add adjacent
f32
lanes. - add_
horizontal_ m128d - Add each lane horizontally, pack the outputs as
a
thenb
. - add_
horizontal_ m256d - Add adjacent
f64
lanes. - add_
horizontal_ saturating_ i16_ m128i - Add horizontal pairs of
i16
values, saturating, pack the outputs asa
thenb
. - add_
horizontal_ saturating_ i16_ m256i - Horizontal saturating
a + b
with lanes asi16
. - add_
i8_ m128i - Lanewise
a + b
with lanes asi8
. - add_
i8_ m256i - Lanewise
a + b
with lanes asi8
. - add_
i16_ m128i - Lanewise
a + b
with lanes asi16
. - add_
i16_ m256i - Lanewise
a + b
with lanes asi16
. - add_
i32_ m128i - Lanewise
a + b
with lanes asi32
. - add_
i32_ m256i - Lanewise
a + b
with lanes asi32
. - add_
i64_ m128i - Lanewise
a + b
with lanes asi64
. - add_
i64_ m256i - Lanewise
a + b
with lanes asi64
. - add_
m128 - Lanewise
a + b
. - add_
m256 - Lanewise
a + b
withf32
lanes. - add_
m128_ s - Low lane
a + b
, other lanes unchanged. - add_
m128d - Lanewise
a + b
. - add_
m128d_ s - Lowest lane
a + b
, high lane unchanged. - add_
m256d - Lanewise
a + b
withf64
lanes. - add_
saturating_ i8_ m128i - Lanewise saturating
a + b
with lanes asi8
. - add_
saturating_ i8_ m256i - Lanewise saturating
a + b
with lanes asi8
. - add_
saturating_ i16_ m128i - Lanewise saturating
a + b
with lanes asi16
. - add_
saturating_ i16_ m256i - Lanewise saturating
a + b
with lanes asi16
. - add_
saturating_ u8_ m128i - Lanewise saturating
a + b
with lanes asu8
. - add_
saturating_ u8_ m256i - Lanewise saturating
a + b
with lanes asu8
. - add_
saturating_ u16_ m128i - Lanewise saturating
a + b
with lanes asu16
. - add_
saturating_ u16_ m256i - Lanewise saturating
a + b
with lanes asu16
. - addsub_
m128 - Alternately, from the top, add a lane and then subtract a lane.
- addsub_
m256 - Alternately, from the top, add
f32
then subf32
. - addsub_
m128d - Add the high lane and subtract the low lane.
- addsub_
m256d - Alternately, from the top, add
f64
then subf64
. - aes_
decrypt_ last_ m128i - Perform the last round of an AES decryption flow on
a
using theround_key
. - aes_
decrypt_ m128i - Perform one round of an AES decryption flow on
a
using theround_key
. - aes_
encrypt_ last_ m128i - Perform the last round of an AES encryption flow on
a
using theround_key
. - aes_
encrypt_ m128i - Perform one round of an AES encryption flow on
a
using theround_key
. - aes_
inv_ mix_ columns_ m128i - Perform the InvMixColumns transform on
a
. - aes_
key_ gen_ assist_ m128i - Assist in expanding an AES cipher key.
- average_
u8_ m128i - Lanewise average of the
u8
values. - average_
u8_ m256i - Average
u8
lanes. - average_
u16_ m128i - Lanewise average of the
u16
values. - average_
u16_ m256i - Average
u16
lanes. - bit_
extract2_ u32 - Extract a span of bits from the
u32
, control value style. - bit_
extract2_ u64 - Extract a span of bits from the
u64
, control value style. - bit_
extract_ u32 - Extract a span of bits from the
u32
, start and len style. - bit_
extract_ u64 - Extract a span of bits from the
u64
, start and len style. - bit_
lowest_ set_ mask_ u32 - Gets the mask of all bits up to and including the lowest set bit in a
u32
. - bit_
lowest_ set_ mask_ u64 - Gets the mask of all bits up to and including the lowest set bit in a
u64
. - bit_
lowest_ set_ reset_ u32 - Resets (clears) the lowest set bit.
- bit_
lowest_ set_ reset_ u64 - Resets (clears) the lowest set bit.
- bit_
lowest_ set_ value_ u32 - Gets the value of the lowest set bit in a
u32
. - bit_
lowest_ set_ value_ u64 - Gets the value of the lowest set bit in a
u64
. - bit_
zero_ high_ index_ u32 - Zero out all high bits in a
u32
starting at the index given. - bit_
zero_ high_ index_ u64 - Zero out all high bits in a
u64
starting at the index given. - bitand_
m128 - Bitwise
a & b
. - bitand_
m256 - Bitwise
a & b
. - bitand_
m128d - Bitwise
a & b
. - bitand_
m128i - Bitwise
a & b
. - bitand_
m256d - Bitwise
a & b
. - bitand_
m256i - Bitwise
a & b
. - bitandnot_
m128 - Bitwise
(!a) & b
. - bitandnot_
m256 - Bitwise
(!a) & b
. - bitandnot_
m128d - Bitwise
(!a) & b
. - bitandnot_
m128i - Bitwise
(!a) & b
. - bitandnot_
m256d - Bitwise
(!a) & b
. - bitandnot_
m256i - Bitwise
(!a) & b
. - bitandnot_
u32 - Bitwise
(!a) & b
foru32
- bitandnot_
u64 - Bitwise
(!a) & b
foru64
- bitor_
m128 - Bitwise
a | b
. - bitor_
m256 - Bitwise
a | b
. - bitor_
m128d - Bitwise
a | b
. - bitor_
m128i - Bitwise
a | b
. - bitor_
m256d - Bitwise
a | b
. - bitor_
m256i - Bitwise
a | b
- bitxor_
m128 - Bitwise
a ^ b
. - bitxor_
m256 - Bitwise
a ^ b
. - bitxor_
m128d - Bitwise
a ^ b
. - bitxor_
m128i - Bitwise
a ^ b
. - bitxor_
m256d - Bitwise
a ^ b
. - bitxor_
m256i - Bitwise
a ^ b
. - blend_
imm_ i16_ m128i - Blends the
i16
lanes according to the immediate mask. - blend_
imm_ i16_ m256i - Blends the
i16
lanes according to the immediate value. - blend_
imm_ i32_ m128i - Blends the
i32
lanes ina
andb
into a single value. - blend_
imm_ i32_ m256i - Blends the
i32
lanes according to the immediate value. - blend_
imm_ m128 - Blends the lanes according to the immediate mask.
- blend_
imm_ m128d - Blends the
i16
lanes according to the immediate mask. - blend_
m256 - Blends the
f32
lanes according to the immediate mask. - blend_
m256d - Blends the
f64
lanes according to the immediate mask. - blend_
varying_ i8_ m128i - Blend the
i8
lanes according to a runtime varying mask. - blend_
varying_ i8_ m256i - Blend
i8
lanes according to a runtime varying mask. - blend_
varying_ m128 - Blend the lanes according to a runtime varying mask.
- blend_
varying_ m256 - Blend the lanes according to a runtime varying mask.
- blend_
varying_ m128d - Blend the lanes according to a runtime varying mask.
- blend_
varying_ m256d - Blend the lanes according to a runtime varying mask.
- byte_
shl_ imm_ u128_ m128i - Shifts all bits in the entire register left by a number of bytes.
- byte_
shl_ imm_ u128_ m256i - Shifts each
u128
lane left by a number of bytes. - byte_
shr_ imm_ u128_ m128i - Shifts all bits in the entire register right by a number of bytes.
- byte_
shr_ imm_ u128_ m256i - Shifts each
u128
lane right by a number of bytes. - byte_
swap_ i32 - Swap the bytes of the given 32-bit value.
- byte_
swap_ i64 - Swap the bytes of the given 64-bit value.
- cast_
to_ m128_ from_ m256 - Bit-preserving cast to
m128
fromm256
. - cast_
to_ m128_ from_ m128d - Bit-preserving cast to
m128
fromm128d
- cast_
to_ m128_ from_ m128i - Bit-preserving cast to
m128
fromm128i
- cast_
to_ m128d_ from_ m128 - Bit-preserving cast to
m128d
fromm128
- cast_
to_ m128d_ from_ m128i - Bit-preserving cast to
m128d
fromm128i
- cast_
to_ m128d_ from_ m256d - Bit-preserving cast to
m128d
fromm256d
. - cast_
to_ m128i_ from_ m128 - Bit-preserving cast to
m128i
fromm128
- cast_
to_ m128i_ from_ m128d - Bit-preserving cast to
m128i
fromm128d
- cast_
to_ m128i_ from_ m256i - Bit-preserving cast to
m128i
fromm256i
. - cast_
to_ m256_ from_ m256d - Bit-preserving cast to
m256
fromm256d
. - cast_
to_ m256_ from_ m256i - Bit-preserving cast to
m256
fromm256i
. - cast_
to_ m256d_ from_ m256 - Bit-preserving cast to
m256i
fromm256
. - cast_
to_ m256d_ from_ m256i - Bit-preserving cast to
m256d
fromm256i
. - cast_
to_ m256i_ from_ m256 - Bit-preserving cast to
m256i
fromm256
. - cast_
to_ m256i_ from_ m256d - Bit-preserving cast to
m256i
fromm256d
. - ceil_
m128 - Round each lane to a whole number, towards positive infinity.
- ceil_
m256 - Round
f32
lanes towards positive infinity. - ceil_
m128_ s - Round the low lane of
b
toward positive infinity, other lanesa
. - ceil_
m128d - Round each lane to a whole number, towards positive infinity.
- ceil_
m128d_ s - Round the low lane of
b
toward positive infinity, high lane isa
. - ceil_
m256d - Round
f64
lanes towards positive infinity. - cmp_
eq_ i32_ m128_ s - Low lane equality.
- cmp_
eq_ i32_ m128d_ s - Low lane
f64
equal to. - cmp_
eq_ mask_ i8_ m128i - Lanewise
a == b
with lanes asi8
. - cmp_
eq_ mask_ i8_ m256i - Compare
i8
lanes for equality, mask output. - cmp_
eq_ mask_ i16_ m128i - Lanewise
a == b
with lanes asi16
. - cmp_
eq_ mask_ i16_ m256i - Compare
i16
lanes for equality, mask output. - cmp_
eq_ mask_ i32_ m128i - Lanewise
a == b
with lanes asi32
. - cmp_
eq_ mask_ i32_ m256i - Compare
i32
lanes for equality, mask output. - cmp_
eq_ mask_ i64_ m128i - Lanewise
a == b
with lanes asi64
. - cmp_
eq_ mask_ i64_ m256i - Compare
i64
lanes for equality, mask output. - cmp_
eq_ mask_ m128 - Lanewise
a == b
. - cmp_
eq_ mask_ m128_ s - Low lane
a == b
, other lanes unchanged. - cmp_
eq_ mask_ m128d - Lanewise
a == b
, mask output. - cmp_
eq_ mask_ m128d_ s - Low lane
a == b
, other lanes unchanged. - cmp_
ge_ i32_ m128_ s - Low lane greater than or equal to.
- cmp_
ge_ i32_ m128d_ s - Low lane
f64
greater than or equal to. - cmp_
ge_ mask_ m128 - Lanewise
a >= b
. - cmp_
ge_ mask_ m128_ s - Low lane
a >= b
, other lanes unchanged. - cmp_
ge_ mask_ m128d - Lanewise
a >= b
. - cmp_
ge_ mask_ m128d_ s - Low lane
a >= b
, other lanes unchanged. - cmp_
gt_ i32_ m128_ s - Low lane greater than.
- cmp_
gt_ i32_ m128d_ s - Low lane
f64
greater than. - cmp_
gt_ mask_ i8_ m128i - Lanewise
a > b
with lanes asi8
. - cmp_
gt_ mask_ i8_ m256i - Compare
i8
lanes fora > b
, mask output. - cmp_
gt_ mask_ i16_ m128i - Lanewise
a > b
with lanes asi16
. - cmp_
gt_ mask_ i16_ m256i - Compare
i16
lanes fora > b
, mask output. - cmp_
gt_ mask_ i32_ m128i - Lanewise
a > b
with lanes asi32
. - cmp_
gt_ mask_ i32_ m256i - Compare
i32
lanes fora > b
, mask output. - cmp_
gt_ mask_ i64_ m128i - Lanewise
a > b
with lanes asi64
. - cmp_
gt_ mask_ i64_ m256i - Compare
i64
lanes fora > b
, mask output. - cmp_
gt_ mask_ m128 - Lanewise
a > b
. - cmp_
gt_ mask_ m128_ s - Low lane
a > b
, other lanes unchanged. - cmp_
gt_ mask_ m128d - Lanewise
a > b
. - cmp_
gt_ mask_ m128d_ s - Low lane
a > b
, other lanes unchanged. - cmp_
le_ i32_ m128_ s - Low lane less than or equal to.
- cmp_
le_ i32_ m128d_ s - Low lane
f64
less than or equal to. - cmp_
le_ mask_ m128 - Lanewise
a <= b
. - cmp_
le_ mask_ m128_ s - Low lane
a <= b
, other lanes unchanged. - cmp_
le_ mask_ m128d - Lanewise
a <= b
. - cmp_
le_ mask_ m128d_ s - Low lane
a <= b
, other lanes unchanged. - cmp_
lt_ i32_ m128_ s - Low lane less than.
- cmp_
lt_ i32_ m128d_ s - Low lane
f64
less than. - cmp_
lt_ mask_ i8_ m128i - Lanewise
a < b
with lanes asi8
. - cmp_
lt_ mask_ i16_ m128i - Lanewise
a < b
with lanes asi16
. - cmp_
lt_ mask_ i32_ m128i - Lanewise
a < b
with lanes asi32
. - cmp_
lt_ mask_ m128 - Lanewise
a < b
. - cmp_
lt_ mask_ m128_ s - Low lane
a < b
, other lanes unchanged. - cmp_
lt_ mask_ m128d - Lanewise
a < b
. - cmp_
lt_ mask_ m128d_ s - Low lane
a < b
, other lane unchanged. - cmp_
neq_ i32_ m128_ s - Low lane not equal to.
- cmp_
neq_ i32_ m128d_ s - Low lane
f64
less than. - cmp_
neq_ mask_ m128 - Lanewise
a != b
. - cmp_
neq_ mask_ m128_ s - Low lane
a != b
, other lanes unchanged. - cmp_
neq_ mask_ m128d - Lanewise
a != b
. - cmp_
neq_ mask_ m128d_ s - Low lane
a != b
, other lane unchanged. - cmp_
nge_ mask_ m128 - Lanewise
!(a >= b)
. - cmp_
nge_ mask_ m128_ s - Low lane
!(a >= b)
, other lanes unchanged. - cmp_
nge_ mask_ m128d - Lanewise
!(a >= b)
. - cmp_
nge_ mask_ m128d_ s - Low lane
!(a >= b)
, other lane unchanged. - cmp_
ngt_ mask_ m128 - Lanewise
!(a > b)
. - cmp_
ngt_ mask_ m128_ s - Low lane
!(a > b)
, other lanes unchanged. - cmp_
ngt_ mask_ m128d - Lanewise
!(a > b)
. - cmp_
ngt_ mask_ m128d_ s - Low lane
!(a > b)
, other lane unchanged. - cmp_
nle_ mask_ m128 - Lanewise
!(a <= b)
. - cmp_
nle_ mask_ m128_ s - Low lane
!(a <= b)
, other lanes unchanged. - cmp_
nle_ mask_ m128d - Lanewise
!(a <= b)
. - cmp_
nle_ mask_ m128d_ s - Low lane
!(a <= b)
, other lane unchanged. - cmp_
nlt_ mask_ m128 - Lanewise
!(a < b)
. - cmp_
nlt_ mask_ m128_ s - Low lane
!(a < b)
, other lanes unchanged. - cmp_
nlt_ mask_ m128d - Lanewise
!(a < b)
. - cmp_
nlt_ mask_ m128d_ s - Low lane
!(a < b)
, other lane unchanged. - cmp_
op_ mask_ m128 - Compare
f32
lanes according to the operation specified, mask output. - cmp_
op_ mask_ m256 - Compare
f32
lanes according to the operation specified, mask output. - cmp_
op_ mask_ m128_ s - Compare
f32
lanes according to the operation specified, mask output. - cmp_
op_ mask_ m128d - Compare
f64
lanes according to the operation specified, mask output. - cmp_
op_ mask_ m128d_ s - Compare
f64
lanes according to the operation specified, mask output. - cmp_
op_ mask_ m256d - Compare
f64
lanes according to the operation specified, mask output. - cmp_
ordered_ mask_ m128 - Lanewise
(!a.is_nan()) & (!b.is_nan())
. - cmp_
ordered_ mask_ m128_ s - Low lane
(!a.is_nan()) & (!b.is_nan())
, other lanes unchanged. - cmp_
ordered_ mask_ m128d - Lanewise
(!a.is_nan()) & (!b.is_nan())
. - cmp_
ordered_ mask_ m128d_ s - Low lane
(!a.is_nan()) & (!b.is_nan())
, other lane unchanged. - cmp_
unord_ mask_ m128 - Lanewise
a.is_nan() | b.is_nan()
. - cmp_
unord_ mask_ m128_ s - Low lane
a.is_nan() | b.is_nan()
, other lanes unchanged. - cmp_
unord_ mask_ m128d - Lanewise
a.is_nan() | b.is_nan()
. - cmp_
unord_ mask_ m128d_ s - Low lane
a.is_nan() | b.is_nan()
, other lane unchanged. - combined_
byte_ shr_ imm_ m128i - Counts
$a
as the high bytes and$b
as the low bytes then performs a byte shift to the right by the immediate value. - combined_
byte_ shr_ imm_ m256i - Works like
combined_byte_shr_imm_m128i
, but twice as wide. - convert_
i32_ replace_ m128_ s - Convert
i32
tof32
and replace the low lane of the input. - convert_
i32_ replace_ m128d_ s - Convert
i32
tof64
and replace the low lane of the input. - convert_
i64_ replace_ m128_ s - Convert
i64
tof32
and replace the low lane of the input. - convert_
i64_ replace_ m128d_ s - Convert
i64
tof64
and replace the low lane of the input. - convert_
m128_ s_ replace_ m128d_ s - Converts the lower
f32
tof64
and replace the low lane of the input - convert_
m128d_ s_ replace_ m128_ s - Converts the low
f64
tof32
and replaces the low lane of the input. - convert_
to_ f32_ from_ m256_ s - Convert the lowest
f32
lane to a singlef32
. - convert_
to_ f64_ from_ m256d_ s - Convert the lowest
f64
lane to a singlef64
. - convert_
to_ i16_ m128i_ from_ lower2_ i16_ m128i - Convert the lower two
i64
lanes to twoi32
lanes. - convert_
to_ i16_ m128i_ from_ lower8_ i8_ m128i - Convert the lower eight
i8
lanes to eighti16
lanes. - convert_
to_ i16_ m256i_ from_ i8_ m128i - Convert
i8
values toi16
values. - convert_
to_ i16_ m256i_ from_ lower4_ u8_ m128i - Convert lower 4
u8
values toi16
values. - convert_
to_ i16_ m256i_ from_ lower8_ u8_ m128i - Convert lower 8
u8
values toi16
values. - convert_
to_ i16_ m256i_ from_ u8_ m128i - Convert
u8
values toi16
values. - convert_
to_ i32_ from_ m256i_ s - Convert the lowest
i32
lane to a singlei32
. - convert_
to_ i32_ m128i_ from_ lower4_ i8_ m128i - Convert the lower four
i8
lanes to fouri32
lanes. - convert_
to_ i32_ m128i_ from_ lower4_ i16_ m128i - Convert the lower four
i16
lanes to fouri32
lanes. - convert_
to_ i32_ m128i_ from_ m128 - Rounds the
f32
lanes toi32
lanes. - convert_
to_ i32_ m128i_ from_ m128d - Rounds the two
f64
lanes to the low twoi32
lanes. - convert_
to_ i32_ m128i_ from_ m256d - Convert
f64
lanes to bei32
lanes. - convert_
to_ i32_ m256i_ from_ i16_ m128i - Convert
i16
values toi32
values. - convert_
to_ i32_ m256i_ from_ lower8_ i8_ m128i - Convert the lower 8
i8
values toi32
values. - convert_
to_ i32_ m256i_ from_ m256 - Convert
f32
lanes to bei32
lanes. - convert_
to_ i32_ m256i_ from_ u16_ m128i - Convert
u16
values toi32
values. - convert_
to_ i64_ m128i_ from_ lower2_ i8_ m128i - Convert the lower two
i8
lanes to twoi64
lanes. - convert_
to_ i64_ m128i_ from_ lower2_ i32_ m128i - Convert the lower two
i32
lanes to twoi64
lanes. - convert_
to_ i64_ m256i_ from_ i32_ m128i - Convert
i32
values toi64
values. - convert_
to_ i64_ m256i_ from_ lower4_ i8_ m128i - Convert the lower 4
i8
values toi64
values. - convert_
to_ i64_ m256i_ from_ lower4_ i16_ m128i - Convert
i16
values toi64
values. - convert_
to_ i64_ m256i_ from_ lower4_ u16_ m128i - Convert
u16
values toi64
values. - convert_
to_ i64_ m256i_ from_ u32_ m128i - Convert
u32
values toi64
values. - convert_
to_ m128_ from_ i32_ m128i - Rounds the four
i32
lanes to fourf32
lanes. - convert_
to_ m128_ from_ m128d - Rounds the two
f64
lanes to the low twof32
lanes. - convert_
to_ m128_ from_ m256d - Convert
f64
lanes to bef32
lanes. - convert_
to_ m128d_ from_ lower2_ i32_ m128i - Rounds the lower two
i32
lanes to twof64
lanes. - convert_
to_ m128d_ from_ lower2_ m128 - Rounds the two
f64
lanes to the low twof32
lanes. - convert_
to_ m256_ from_ i32_ m256i - Convert
i32
lanes to bef32
lanes. - convert_
to_ m256d_ from_ i32_ m128i - Convert
i32
lanes to bef64
lanes. - convert_
to_ m256d_ from_ m128 - Convert
f32
lanes to bef64
lanes. - convert_
to_ u16_ m128i_ from_ lower8_ u8_ m128i - Convert the lower eight
u8
lanes to eightu16
lanes. - convert_
to_ u32_ m128i_ from_ lower4_ u8_ m128i - Convert the lower four
u8
lanes to fouru32
lanes. - convert_
to_ u32_ m128i_ from_ lower4_ u16_ m128i - Convert the lower four
u16
lanes to fouru32
lanes. - convert_
to_ u64_ m128i_ from_ lower2_ u8_ m128i - Convert the lower two
u8
lanes to twou64
lanes. - convert_
to_ u64_ m128i_ from_ lower2_ u16_ m128i - Convert the lower two
u16
lanes to twou64
lanes. - convert_
to_ u64_ m128i_ from_ lower2_ u32_ m128i - Convert the lower two
u32
lanes to twou64
lanes. - convert_
truncate_ to_ i32_ m128i_ from_ m256d - Convert
f64
lanes toi32
lanes with truncation. - convert_
truncate_ to_ i32_ m256i_ from_ m256 - Convert
f32
lanes toi32
lanes with truncation. - copy_
i64_ m128i_ s - Copy the low
i64
lane to a new register, upper bits 0. - copy_
replace_ low_ f64_ m128d - Copies the
a
value and replaces the low lane with the lowb
value. - crc32_
u8 - Accumulates the
u8
into a running CRC32 value. - crc32_
u16 - Accumulates the
u16
into a running CRC32 value. - crc32_
u32 - Accumulates the
u32
into a running CRC32 value. - crc32_
u64 - Accumulates the
u64
into a running CRC32 value. - div_
m128 - Lanewise
a / b
. - div_
m256 - Lanewise
a / b
withf32
. - div_
m128_ s - Low lane
a / b
, other lanes unchanged. - div_
m128d - Lanewise
a / b
. - div_
m128d_ s - Lowest lane
a / b
, high lane unchanged. - div_
m256d - Lanewise
a / b
withf64
. - dot_
product_ m128 - Performs a dot product of two
m128
registers. - dot_
product_ m256 - This works like
dot_product_m128
, but twice as wide. - dot_
product_ m128d - Performs a dot product of two
m128d
registers. - duplicate_
even_ lanes_ m128 - Duplicate the odd lanes to the even lanes.
- duplicate_
even_ lanes_ m256 - Duplicate the even-indexed lanes to the odd lanes.
- duplicate_
low_ lane_ m128d_ s - Copy the low lane of the input to both lanes of the output.
- duplicate_
odd_ lanes_ m128 - Duplicate the odd lanes to the even lanes.
- duplicate_
odd_ lanes_ m256 - Duplicate the odd-indexed lanes to the even lanes.
- duplicate_
odd_ lanes_ m256d - Duplicate the odd-indexed lanes to the even lanes.
- extract_
f32_ as_ i32_ bits_ imm_ m128 - Gets the
f32
lane requested. Returns as ani32
bit pattern. - extract_
i8_ as_ i32_ imm_ m128i - Gets the
i8
lane requested. Only the lowest 4 bits are considered. - extract_
i8_ as_ i32_ m256i - Gets an
i8
value out of anm256i
, returns asi32
. - extract_
i16_ as_ i32_ m128i - Gets an
i16
value out of anm128i
, returns asi32
. - extract_
i16_ as_ i32_ m256i - Gets an
i16
value out of anm256i
, returns asi32
. - extract_
i32_ from_ m256i - Extracts an
i32
lane fromm256i
- extract_
i32_ imm_ m128i - Gets the
i32
lane requested. Only the lowest 2 bits are considered. - extract_
i64_ from_ m256i - Extracts an
i64
lane fromm256i
- extract_
i64_ imm_ m128i - Gets the
i64
lane requested. Only the lowest bit is considered. - extract_
m128_ from_ m256 - Extracts an
m128
fromm256
- extract_
m128d_ from_ m256d - Extracts an
m128d
fromm256d
- extract_
m128i_ from_ m256i - Extracts an
m128i
fromm256i
- extract_
m128i_ m256i - Gets an
m128i
value out of anm256i
. - floor_
m128 - Round each lane to a whole number, towards negative infinity
- floor_
m256 - Round
f32
lanes towards negative infinity. - floor_
m128_ s - Round the low lane of
b
toward negative infinity, other lanesa
. - floor_
m128d - Round each lane to a whole number, towards negative infinity
- floor_
m128d_ s - Round the low lane of
b
toward negative infinity, high lane isa
. - floor_
m256d - Round
f64
lanes towards negative infinity. - fused_
mul_ add_ m128 - Lanewise fused
(a * b) + c
- fused_
mul_ add_ m256 - Lanewise fused
(a * b) + c
- fused_
mul_ add_ m128_ s - Low lane fused
(a * b) + c
, other lanes unchanged - fused_
mul_ add_ m128d - Lanewise fused
(a * b) + c
- fused_
mul_ add_ m128d_ s - Low lane fused
(a * b) + c
, other lanes unchanged - fused_
mul_ add_ m256d - Lanewise fused
(a * b) + c
- fused_
mul_ addsub_ m128 - Lanewise fused
(a * b) addsub c
(adds odd lanes and subtracts even lanes) - fused_
mul_ addsub_ m256 - Lanewise fused
(a * b) addsub c
(adds odd lanes and subtracts even lanes) - fused_
mul_ addsub_ m128d - Lanewise fused
(a * b) addsub c
(adds odd lanes and subtracts even lanes) - fused_
mul_ addsub_ m256d - Lanewise fused
(a * b) addsub c
(adds odd lanes and subtracts even lanes) - fused_
mul_ neg_ add_ m128 - Lanewise fused
-(a * b) + c
- fused_
mul_ neg_ add_ m256 - Lanewise fused
-(a * b) + c
- fused_
mul_ neg_ add_ m128_ s - Low lane
-(a * b) + c
, other lanes unchanged. - fused_
mul_ neg_ add_ m128d - Lanewise fused
-(a * b) + c
- fused_
mul_ neg_ add_ m128d_ s - Low lane
-(a * b) + c
, other lanes unchanged. - fused_
mul_ neg_ add_ m256d - Lanewise fused
-(a * b) + c
- fused_
mul_ neg_ sub_ m128 - Lanewise fused
-(a * b) - c
- fused_
mul_ neg_ sub_ m256 - Lanewise fused
-(a * b) - c
- fused_
mul_ neg_ sub_ m128_ s - Low lane fused
-(a * b) - c
, other lanes unchanged. - fused_
mul_ neg_ sub_ m128d - Lanewise fused
-(a * b) - c
- fused_
mul_ neg_ sub_ m128d_ s - Low lane fused
-(a * b) - c
, other lanes unchanged. - fused_
mul_ neg_ sub_ m256d - Lanewise fused
-(a * b) - c
- fused_
mul_ sub_ m128 - Lanewise fused
(a * b) - c
- fused_
mul_ sub_ m256 - Lanewise fused
(a * b) - c
- fused_
mul_ sub_ m128_ s - Low lane fused
(a * b) - c
, other lanes unchanged. - fused_
mul_ sub_ m128d - Lanewise fused
(a * b) - c
- fused_
mul_ sub_ m128d_ s - Low lane fused
(a * b) - c
, other lanes unchanged. - fused_
mul_ sub_ m256d - Lanewise fused
(a * b) - c
- fused_
mul_ subadd_ m128 - Lanewise fused
(a * b) subadd c
(subtracts odd lanes and adds even lanes) - fused_
mul_ subadd_ m256 - Lanewise fused
(a * b) subadd c
(subtracts odd lanes and adds even lanes) - fused_
mul_ subadd_ m128d - Lanewise fused
(a * b) subadd c
(subtracts odd lanes and adds even lanes) - fused_
mul_ subadd_ m256d - Lanewise fused
(a * b) subadd c
(subtracts odd lanes and adds even lanes) - get_
f32_ from_ m128_ s - Gets the low lane as an individual
f32
value. - get_
f64_ from_ m128d_ s - Gets the lower lane as an
f64
value. - get_
i32_ from_ m128_ s - Converts the low lane to
i32
and extracts as an individual value. - get_
i32_ from_ m128d_ s - Converts the lower lane to an
i32
value. - get_
i32_ from_ m128i_ s - Converts the lower lane to an
i32
value. - get_
i64_ from_ m128_ s - Converts the low lane to
i64
and extracts as an individual value. - get_
i64_ from_ m128d_ s - Converts the lower lane to an
i64
value. - get_
i64_ from_ m128i_ s - Converts the lower lane to an
i64
value. - insert_
f32_ imm_ m128 - Inserts a lane from
$b
into$a
, optionally at a new position. - insert_
i8_ imm_ m128i - Inserts a new value for the
i64
lane specified. - insert_
i8_ to_ m256i - Inserts an
i8
tom256i
- insert_
i16_ from_ i32_ m128i - Inserts the low 16 bits of an
i32
value into anm128i
. - insert_
i16_ to_ m256i - Inserts an
i16
tom256i
- insert_
i32_ imm_ m128i - Inserts a new value for the
i32
lane specified. - insert_
i32_ to_ m256i - Inserts an
i32
tom256i
- insert_
i64_ imm_ m128i - Inserts a new value for the
i64
lane specified. - insert_
i64_ to_ m256i - Inserts an
i64
tom256i
- insert_
m128_ to_ m256 - Inserts an
m128
tom256
- insert_
m128d_ to_ m256d - Inserts an
m128d
tom256d
- insert_
m128i_ to_ m256i - Inserts an
m128i
to anm256i
at the high or low position. - insert_
m128i_ to_ m256i_ slow_ avx - Slowly inserts an
m128i
tom256i
. - leading_
zero_ count_ u32 - Count the leading zeroes in a
u32
. - leading_
zero_ count_ u64 - Count the leading zeroes in a
u64
. - load_
f32_ m128_ s - Loads the
f32
reference into the low lane of the register. - load_
f32_ splat_ m128 - Loads the
f32
reference into all lanes of a register. - load_
f32_ splat_ m256 - Load an
f32
and splat it to all lanes of anm256d
- load_
f64_ m128d_ s - Loads the reference into the low lane of the register.
- load_
f64_ splat_ m128d - Loads the
f64
reference into all lanes of a register. - load_
f64_ splat_ m256d - Load an
f64
and splat it to all lanes of anm256d
- load_
i64_ m128i_ s - Loads the low
i64
into a register. - load_
m128 - Loads the reference into a register.
- load_
m256 - Load data from memory into a register.
- load_
m128_ splat_ m256 - Load an
m128
and splat it to the lower and upper half of anm256
- load_
m128d - Loads the reference into a register.
- load_
m128d_ splat_ m256d - Load an
m128d
and splat it to the lower and upper half of anm256d
- load_
m128i - Loads the reference into a register.
- load_
m256d - Load data from memory into a register.
- load_
m256i - Load data from memory into a register.
- load_
masked_ i32_ m128i - Loads the reference given and zeroes any
i32
lanes not in the mask. - load_
masked_ i32_ m256i - Loads the reference given and zeroes any
i32
lanes not in the mask. - load_
masked_ i64_ m128i - Loads the reference given and zeroes any
i64
lanes not in the mask. - load_
masked_ i64_ m256i - Loads the reference given and zeroes any
i64
lanes not in the mask. - load_
masked_ m128 - Load data from memory into a register according to a mask.
- load_
masked_ m256 - Load data from memory into a register according to a mask.
- load_
masked_ m128d - Load data from memory into a register according to a mask.
- load_
masked_ m256d - Load data from memory into a register according to a mask.
- load_
replace_ high_ m128d - Loads the reference into a register, replacing the high lane.
- load_
replace_ low_ m128d - Loads the reference into a register, replacing the low lane.
- load_
reverse_ m128 - Loads the reference into a register with reversed order.
- load_
reverse_ m128d - Loads the reference into a register with reversed order.
- load_
unaligned_ hi_ lo_ m256 - Load data from memory into a register.
- load_
unaligned_ hi_ lo_ m256d - Load data from memory into a register.
- load_
unaligned_ hi_ lo_ m256i - Load data from memory into a register.
- load_
unaligned_ m128 - Loads the reference into a register.
- load_
unaligned_ m256 - Load data from memory into a register.
- load_
unaligned_ m128d - Loads the reference into a register.
- load_
unaligned_ m128i - Loads the reference into a register.
- load_
unaligned_ m256d - Load data from memory into a register.
- load_
unaligned_ m256i - Load data from memory into a register.
- max_
i8_ m128i - Lanewise
max(a, b)
with lanes asi8
. - max_
i8_ m256i - Lanewise
max(a, b)
with lanes asi8
. - max_
i16_ m128i - Lanewise
max(a, b)
with lanes asi16
. - max_
i16_ m256i - Lanewise
max(a, b)
with lanes asi16
. - max_
i32_ m128i - Lanewise
max(a, b)
with lanes asi32
. - max_
i32_ m256i - Lanewise
max(a, b)
with lanes asi32
. - max_
m128 - Lanewise
max(a, b)
. - max_
m256 - Lanewise
max(a, b)
. - max_
m128_ s - Low lane
max(a, b)
, other lanes unchanged. - max_
m128d - Lanewise
max(a, b)
. - max_
m128d_ s - Low lane
max(a, b)
, other lanes unchanged. - max_
m256d - Lanewise
max(a, b)
. - max_
u8_ m128i - Lanewise
max(a, b)
with lanes asu8
. - max_
u8_ m256i - Lanewise
max(a, b)
with lanes asu8
. - max_
u16_ m128i - Lanewise
max(a, b)
with lanes asu16
. - max_
u16_ m256i - Lanewise
max(a, b)
with lanes asu16
. - max_
u32_ m128i - Lanewise
max(a, b)
with lanes asu32
. - max_
u32_ m256i - Lanewise
max(a, b)
with lanes asu32
. - min_
i8_ m128i - Lanewise
min(a, b)
with lanes asi8
. - min_
i8_ m256i - Lanewise
min(a, b)
with lanes asi8
. - min_
i16_ m128i - Lanewise
min(a, b)
with lanes asi16
. - min_
i16_ m256i - Lanewise
min(a, b)
with lanes asi16
. - min_
i32_ m128i - Lanewise
min(a, b)
with lanes asi32
. - min_
i32_ m256i - Lanewise
min(a, b)
with lanes asi32
. - min_
m128 - Lanewise
min(a, b)
. - min_
m256 - Lanewise
min(a, b)
. - min_
m128_ s - Low lane
min(a, b)
, other lanes unchanged. - min_
m128d - Lanewise
min(a, b)
. - min_
m128d_ s - Low lane
min(a, b)
, other lanes unchanged. - min_
m256d - Lanewise
min(a, b)
. - min_
position_ u16_ m128i - Min
u16
value, position, and other lanes zeroed. - min_
u8_ m128i - Lanewise
min(a, b)
with lanes asu8
. - min_
u8_ m256i - Lanewise
min(a, b)
with lanes asu8
. - min_
u16_ m128i - Lanewise
min(a, b)
with lanes asu16
. - min_
u16_ m256i - Lanewise
min(a, b)
with lanes asu16
. - min_
u32_ m128i - Lanewise
min(a, b)
with lanes asu32
. - min_
u32_ m256i - Lanewise
min(a, b)
with lanes asu32
. - move_
high_ low_ m128 - Move the high lanes of
b
to the low lanes ofa
, other lanes unchanged. - move_
low_ high_ m128 - Move the low lanes of
b
to the high lanes ofa
, other lanes unchanged. - move_
m128_ s - Move the low lane of
b
toa
, other lanes unchanged. - move_
mask_ i8_ m128i - Gathers the
i8
sign bit of each lane. - move_
mask_ i8_ m256i - Create an
i32
mask of each sign bit in thei8
lanes. - move_
mask_ m128 - Gathers the sign bit of each lane.
- move_
mask_ m256 - Collects the sign bit of each lane into a 4-bit value.
- move_
mask_ m128d - Gathers the sign bit of each lane.
- move_
mask_ m256d - Collects the sign bit of each lane into a 4-bit value.
- mul_
32_ m128i - Lanewise
a * b
with 32-bit lanes. - mul_
extended_ u32 - Multiply two
u32
, outputting the low bits and storing the high bits in the reference. - mul_
extended_ u64 - Multiply two
u64
, outputting the low bits and storing the high bits in the reference. - mul_
i16_ horizontal_ add_ m128i - Multiply
i16
lanes producingi32
values, horizontal add pairs ofi32
values to produce the final output. - mul_
i16_ horizontal_ add_ m256i - Multiply
i16
lanes producingi32
values, horizontal add pairs ofi32
values to produce the final output. - mul_
i16_ keep_ high_ m128i - Lanewise
a * b
with lanes asi16
, keep the high bits of thei32
intermediates. - mul_
i16_ keep_ high_ m256i - Multiply the
i16
lanes and keep the high half of each 32-bit output. - mul_
i16_ keep_ low_ m128i - Lanewise
a * b
with lanes asi16
, keep the low bits of thei32
intermediates. - mul_
i16_ keep_ low_ m256i - Multiply the
i16
lanes and keep the low half of each 32-bit output. - mul_
i16_ scale_ round_ m128i - Multiply
i16
lanes intoi32
intermediates, keep the high 18 bits, round by adding 1, right shift by 1. - mul_
i16_ scale_ round_ m256i - Multiply
i16
lanes intoi32
intermediates, keep the high 18 bits, round by adding 1, right shift by 1. - mul_
i32_ keep_ low_ m256i - Multiply the
i32
lanes and keep the low half of each 64-bit output. - mul_
i64_ carryless_ m128i - Performs a “carryless” multiplication of two
i64
values. - mul_
i64_ low_ bits_ m256i - Multiply the lower
i32
within eachi64
lane,i64
output. - mul_
m128 - Lanewise
a * b
. - mul_
m256 - Lanewise
a * b
withf32
lanes. - mul_
m128_ s - Low lane
a * b
, other lanes unchanged. - mul_
m128d - Lanewise
a * b
. - mul_
m128d_ s - Lowest lane
a * b
, high lane unchanged. - mul_
m256d - Lanewise
a * b
withf64
lanes. - mul_
u8i8_ add_ horizontal_ saturating_ m128i - This is dumb and weird.
- mul_
u8i8_ add_ horizontal_ saturating_ m256i - This is dumb and weird.
- mul_
u16_ keep_ high_ m128i - Lanewise
a * b
with lanes asu16
, keep the high bits of theu32
intermediates. - mul_
u16_ keep_ high_ m256i - Multiply the
u16
lanes and keep the high half of each 32-bit output. - mul_
u64_ low_ bits_ m256i - Multiply the lower
u32
within eachu64
lane,u64
output. - mul_
widen_ i32_ odd_ m128i - Multiplies the odd
i32
lanes and gives the widened (i64
) results. - mul_
widen_ u32_ odd_ m128i - Multiplies the odd
u32
lanes and gives the widened (u64
) results. - multi_
packed_ sum_ abs_ diff_ u8_ m128i - Computes eight
u16
“sum of absolute difference” values according to the bytes selected. - multi_
packed_ sum_ abs_ diff_ u8_ m256i - Computes eight
u16
“sum of absolute difference” values according to the bytes selected. - pack_
i16_ to_ i8_ m128i - Saturating convert
i16
toi8
, and pack the values. - pack_
i16_ to_ i8_ m256i - Saturating convert
i16
toi8
, and pack the values. - pack_
i16_ to_ u8_ m128i - Saturating convert
i16
tou8
, and pack the values. - pack_
i16_ to_ u8_ m256i - Saturating convert
i16
tou8
, and pack the values. - pack_
i32_ to_ i16_ m128i - Saturating convert
i32
toi16
, and pack the values. - pack_
i32_ to_ i16_ m256i - Saturating convert
i32
toi16
, and pack the values. - pack_
i32_ to_ u16_ m128i - Saturating convert
i32
tou16
, and pack the values. - pack_
i32_ to_ u16_ m256i - Saturating convert
i32
tou16
, and pack the values. - permute2z_
m256 - Shuffle 128 bits of floating point data at a time from
$a
and$b
using an immediate control value. - permute2z_
m256d - Shuffle 128 bits of floating point data at a time from
a
andb
using an immediate control value. - permute2z_
m256i - Slowly swizzle 128 bits of integer data from
a
andb
using an immediate control value. - permute_
m128 - Shuffle the
f32
lanes froma
using an immediate control value. - permute_
m256 - Shuffle the
f32
lanes ina
using an immediate control value. - permute_
m128d - Shuffle the
f64
lanes ina
using an immediate control value. - permute_
m256d - Shuffle the
f64
lanes froma
together using an immediate control value. - population_
count_ i32 - Count the number of bits set within an
i32
- population_
count_ i64 - Count the number of bits set within an
i64
- population_
deposit_ u32 - Deposit contiguous low bits from a
u32
according to a mask. - population_
deposit_ u64 - Deposit contiguous low bits from a
u64
according to a mask. - population_
extract_ u32 - Extract bits from a
u32
according to a mask. - population_
extract_ u64 - Extract bits from a
u64
according to a mask. - prefetch_
et0 - Fetches the cache line containing
addr
into all levels of the cache hierarchy, anticipating write - prefetch_
et1 - Fetches into L2 and higher, anticipating write
- prefetch_
nta - Fetch data using the non-temporal access (NTA) hint. It may be a place closer than main memory but outside of the cache hierarchy. This is used to reduce access latency without polluting the cache.
- prefetch_
t0 - Fetches the cache line containing
addr
into all levels of the cache hierarchy. - prefetch_
t1 - Fetches into L2 and higher.
- prefetch_
t2 - Fetches into L3 and higher or an implementation-specific choice (e.g., L2 if there is no L3).
- rdrand_
u16 - Try to obtain a random
u16
from the hardware RNG. - rdrand_
u32 - Try to obtain a random
u32
from the hardware RNG. - rdrand_
u64 - Try to obtain a random
u64
from the hardware RNG. - rdseed_
u16 - Try to obtain a random
u16
from the hardware RNG. - rdseed_
u32 - Try to obtain a random
u32
from the hardware RNG. - rdseed_
u64 - Try to obtain a random
u64
from the hardware RNG. - read_
timestamp_ counter - Reads the CPU’s timestamp counter value.
- read_
timestamp_ counter_ p - Reads the CPU’s timestamp counter value and store the processor signature.
- reciprocal_
m128 - Lanewise
1.0 / a
approximation. - reciprocal_
m256 - Reciprocal of
f32
lanes. - reciprocal_
m128_ s - Low lane
1.0 / a
approximation, other lanes unchanged. - reciprocal_
sqrt_ m128 - Lanewise
1.0 / sqrt(a)
approximation. - reciprocal_
sqrt_ m256 - Reciprocal of
f32
lanes. - reciprocal_
sqrt_ m128_ s - Low lane
1.0 / sqrt(a)
approximation, other lanes unchanged. - round_
m128 - Rounds each lane in the style specified.
- round_
m256 - Rounds each lane in the style specified.
- round_
m128_ s - Rounds
$b
low as specified, other lanes use$a
. - round_
m128d - Rounds each lane in the style specified.
- round_
m128d_ s - Rounds
$b
low as specified, keeps$a
high. - round_
m256d - Rounds each lane in the style specified.
- search_
explicit_ str_ for_ index - Search for
needle
in `haystack, with explicit string length. - search_
explicit_ str_ for_ mask - Search for
needle
in `haystack, with explicit string length. - search_
implicit_ str_ for_ index - Search for
needle
in `haystack, with implicit string length. - search_
implicit_ str_ for_ mask - Search for
needle
in `haystack, with implicit string length. - set_
i8_ m128i - Sets the args into an
m128i
, first arg is the high lane. - set_
i8_ m256i - Set
i8
args into anm256i
lane. - set_
i16_ m128i - Sets the args into an
m128i
, first arg is the high lane. - set_
i16_ m256i - Set
i16
args into anm256i
lane. - set_
i32_ m128i - Sets the args into an
m128i
, first arg is the high lane. - set_
i32_ m128i_ s - Set an
i32
as the low 32-bit lane of anm128i
, other lanes blank. - set_
i32_ m256i - Set
i32
args into anm256i
lane. - set_
i64_ m128i - Sets the args into an
m128i
, first arg is the high lane. - set_
i64_ m128i_ s - Set an
i64
as the low 64-bit lane of anm128i
, other lanes blank. - set_
i64_ m256i - Set
i64
args into anm256i
lane. - set_
m128 - Sets the args into an
m128
, first arg is the high lane. - set_
m256 - Set
f32
args into anm256
lane. - set_
m128_ m256 - Set
m128
args into anm256
. - set_
m128_ s - Sets the args into an
m128
, first arg is the high lane. - set_
m128d - Sets the args into an
m128d
, first arg is the high lane. - set_
m128d_ m256d - Set
m128d
args into anm256d
. - set_
m128d_ s - Sets the args into the low lane of a
m128d
. - set_
m128i_ m256i - Set
m128i
args into anm256i
. - set_
m256d - Set
f64
args into anm256d
lane. - set_
reversed_ i8_ m128i - Sets the args into an
m128i
, first arg is the low lane. - set_
reversed_ i8_ m256i - Set
i8
args into anm256i
lane. - set_
reversed_ i16_ m128i - Sets the args into an
m128i
, first arg is the low lane. - set_
reversed_ i16_ m256i - Set
i16
args into anm256i
lane. - set_
reversed_ i32_ m128i - Sets the args into an
m128i
, first arg is the low lane. - set_
reversed_ i32_ m256i - Set
i32
args into anm256i
lane. - set_
reversed_ i64_ m256i - Set
i64
args into anm256i
lane. - set_
reversed_ m128 - Sets the args into an
m128
, first arg is the low lane. - set_
reversed_ m256 - Set
f32
args into anm256
lane. - set_
reversed_ m128_ m256 - Set
m128
args into anm256
. - set_
reversed_ m128d - Sets the args into an
m128d
, first arg is the low lane. - set_
reversed_ m128d_ m256d - Set
m128d
args into anm256d
. - set_
reversed_ m128i_ m256i - Set
m128i
args into anm256i
. - set_
reversed_ m256d - Set
f64
args into anm256d
lane. - set_
splat_ i8_ m128i - Splats the
i8
to all lanes of them128i
. - set_
splat_ i8_ m128i_ s_ m256i - Sets the lowest
i8
lane of anm128i
as all lanes of anm256i
. - set_
splat_ i8_ m256i - Splat an
i8
arg into anm256i
lane. - set_
splat_ i16_ m128i - Splats the
i16
to all lanes of them128i
. - set_
splat_ i16_ m128i_ s_ m256i - Sets the lowest
i16
lane of anm128i
as all lanes of anm256i
. - set_
splat_ i16_ m256i - Splat an
i16
arg into anm256i
lane. - set_
splat_ i32_ m128i - Splats the
i32
to all lanes of them128i
. - set_
splat_ i32_ m128i_ s_ m256i - Sets the lowest
i32
lane of anm128i
as all lanes of anm256i
. - set_
splat_ i32_ m256i - Splat an
i32
arg into anm256i
lane. - set_
splat_ i64_ m128i - Splats the
i64
to both lanes of them128i
. - set_
splat_ i64_ m128i_ s_ m256i - Sets the lowest
i64
lane of anm128i
as all lanes of anm256i
. - set_
splat_ i64_ m256i - Splat an
i64
arg into anm256i
lane. - set_
splat_ m128 - Splats the value to all lanes.
- set_
splat_ m256 - Splat an
f32
arg into anm256
lane. - set_
splat_ m128_ s_ m256 - Sets the lowest lane of an
m128
as all lanes of anm256
. - set_
splat_ m128d - Splats the args into both lanes of the
m128d
. - set_
splat_ m128d_ s_ m256d - Sets the lowest lane of an
m128d
as all lanes of anm256d
. - set_
splat_ m256d - Splat an
f64
arg into anm256d
lane. - shl_
all_ u16_ m128i - Shift all
u16
lanes to the left by thecount
in the loweru64
lane. - shl_
all_ u16_ m256i - Lanewise
u16
shift left by the loweru64
lane ofcount
. - shl_
all_ u32_ m128i - Shift all
u32
lanes to the left by thecount
in the loweru64
lane. - shl_
all_ u32_ m256i - Shift all
u32
lanes left by the loweru64
lane ofcount
. - shl_
all_ u64_ m128i - Shift all
u64
lanes to the left by thecount
in the loweru64
lane. - shl_
all_ u64_ m256i - Shift all
u64
lanes left by the loweru64
lane ofcount
. - shl_
each_ u32_ m128i - Shift
u32
values to the left bycount
bits. - shl_
each_ u32_ m256i - Lanewise
u32
shift left by the matchingi32
lane incount
. - shl_
each_ u64_ m128i - Shift
u64
values to the left bycount
bits. - shl_
each_ u64_ m256i - Lanewise
u64
shift left by the matchingu64
lane incount
. - shl_
imm_ u16_ m128i - Shifts all
u16
lanes left by an immediate. - shl_
imm_ u16_ m256i - Shifts all
u16
lanes left by an immediate. - shl_
imm_ u32_ m128i - Shifts all
u32
lanes left by an immediate. - shl_
imm_ u32_ m256i - Shifts all
u32
lanes left by an immediate. - shl_
imm_ u64_ m128i - Shifts both
u64
lanes left by an immediate. - shl_
imm_ u64_ m256i - Shifts all
u64
lanes left by an immediate. - shr_
all_ i16_ m128i - Shift each
i16
lane to the right by thecount
in the loweri64
lane. - shr_
all_ i16_ m256i - Lanewise
i16
shift right by the loweri64
lane ofcount
. - shr_
all_ i32_ m128i - Shift each
i32
lane to the right by thecount
in the loweri64
lane. - shr_
all_ i32_ m256i - Lanewise
i32
shift right by the loweri64
lane ofcount
. - shr_
all_ u16_ m128i - Shift each
u16
lane to the right by thecount
in the loweru64
lane. - shr_
all_ u16_ m256i - Lanewise
u16
shift right by the loweru64
lane ofcount
. - shr_
all_ u32_ m128i - Shift each
u32
lane to the right by thecount
in the loweru64
lane. - shr_
all_ u32_ m256i - Lanewise
u32
shift right by the loweru64
lane ofcount
. - shr_
all_ u64_ m128i - Shift each
u64
lane to the right by thecount
in the loweru64
lane. - shr_
all_ u64_ m256i - Lanewise
u64
shift right by the loweru64
lane ofcount
. - shr_
each_ i32_ m128i - Shift
i32
values to the right bycount
bits. - shr_
each_ i32_ m256i - Lanewise
i32
shift right by the matchingi32
lane incount
. - shr_
each_ u32_ m128i - Shift
u32
values to the left bycount
bits. - shr_
each_ u32_ m256i - Lanewise
u32
shift right by the matchingu32
lane incount
. - shr_
each_ u64_ m128i - Shift
u64
values to the left bycount
bits. - shr_
each_ u64_ m256i - Lanewise
u64
shift right by the matchingi64
lane incount
. - shr_
imm_ i16_ m128i - Shifts all
i16
lanes right by an immediate. - shr_
imm_ i16_ m256i - Shifts all
i16
lanes left by an immediate. - shr_
imm_ i32_ m128i - Shifts all
i32
lanes right by an immediate. - shr_
imm_ i32_ m256i - Shifts all
i32
lanes left by an immediate. - shr_
imm_ u16_ m128i - Shifts all
u16
lanes right by an immediate. - shr_
imm_ u16_ m256i - Shifts all
u16
lanes right by an immediate. - shr_
imm_ u32_ m128i - Shifts all
u32
lanes right by an immediate. - shr_
imm_ u32_ m256i - Shifts all
u32
lanes right by an immediate. - shr_
imm_ u64_ m128i - Shifts both
u64
lanes right by an immediate. - shr_
imm_ u64_ m256i - Shifts all
u64
lanes right by an immediate. - shuffle_
abi_ f32_ all_ m128 - Shuffle the
f32
lanes from$a
and$b
together using an immediate control value. - shuffle_
abi_ f64_ all_ m128d - Shuffle the
f64
lanes from$a
and$b
together using an immediate control value. - shuffle_
abi_ i128z_ all_ m256i - Shuffle 128 bits of integer data from
$a
and$b
using an immediate control value. - shuffle_
ai_ f32_ all_ m128i - Shuffle the
i32
lanes in$a
using an immediate control value. - shuffle_
ai_ f64_ all_ m256d - Shuffle the
f64
lanes from$a
using an immediate control value. - shuffle_
ai_ i16_ h64all_ m128i - Shuffle the high
i16
lanes in$a
using an immediate control value. - shuffle_
ai_ i16_ h64half_ m256i - Shuffle the high
i16
lanes in$a
using an immediate control value. - shuffle_
ai_ i16_ l64all_ m128i - Shuffle the low
i16
lanes in$a
using an immediate control value. - shuffle_
ai_ i16_ l64half_ m256i - Shuffle the low
i16
lanes in$a
using an immediate control value. - shuffle_
ai_ i32_ half_ m256i - Shuffle the
i32
lanes ina
using an immediate control value. - shuffle_
ai_ i64_ all_ m256i - Shuffle the
f64
lanes in$a
using an immediate control value. - shuffle_
av_ f32_ all_ m128 - Shuffle
f32
values ina
usingi32
values inv
. - shuffle_
av_ f32_ half_ m256 - Shuffle
f32
values ina
usingi32
values inv
. - shuffle_
av_ f64_ all_ m128d - Shuffle
f64
lanes ina
using bit 1 of thei64
lanes inv
- shuffle_
av_ f64_ half_ m256d - Shuffle
f64
lanes ina
using bit 1 of thei64
lanes inv
. - shuffle_
av_ i8z_ all_ m128i - Shuffle
i8
lanes ina
usingi8
values inv
. - shuffle_
av_ i8z_ half_ m256i - Shuffle
i8
lanes ina
usingi8
values inv
. - shuffle_
av_ i32_ all_ m256 - Shuffle
f32
lanes ina
usingi32
values inv
. - shuffle_
av_ i32_ all_ m256i - Shuffle
i32
lanes ina
usingi32
values inv
. - shuffle_
m256 - Shuffle the
f32
lanes froma
andb
together using an immediate control value. - shuffle_
m256d - Shuffle the
f64
lanes froma
andb
together using an immediate control value. - sign_
apply_ i8_ m128i - Applies the sign of
i8
values inb
to the values ina
. - sign_
apply_ i8_ m256i - Lanewise
a * signum(b)
with lanes asi8
- sign_
apply_ i16_ m128i - Applies the sign of
i16
values inb
to the values ina
. - sign_
apply_ i16_ m256i - Lanewise
a * signum(b)
with lanes asi16
- sign_
apply_ i32_ m128i - Applies the sign of
i32
values inb
to the values ina
. - sign_
apply_ i32_ m256i - Lanewise
a * signum(b)
with lanes asi32
- splat_
i8_ m128i_ s_ m128i - Splat the lowest 8-bit lane across the entire 128 bits.
- splat_
i16_ m128i_ s_ m128i - Splat the lowest 16-bit lane across the entire 128 bits.
- splat_
i32_ m128i_ s_ m128i - Splat the lowest 32-bit lane across the entire 128 bits.
- splat_
i64_ m128i_ s_ m128i - Splat the lowest 64-bit lane across the entire 128 bits.
- splat_
m128_ s_ m128 - Splat the lowest
f32
across all four lanes. - splat_
m128d_ s_ m128d - Splat the lower
f64
across both lanes ofm128d
. - splat_
m128i_ m256i - Splat the 128-bits across 256-bits.
- sqrt_
m128 - Lanewise
sqrt(a)
. - sqrt_
m256 - Lanewise
sqrt
onf64
lanes. - sqrt_
m128_ s - Low lane
sqrt(a)
, other lanes unchanged. - sqrt_
m128d - Lanewise
sqrt(a)
. - sqrt_
m128d_ s - Low lane
sqrt(b)
, upper lane is unchanged froma
. - sqrt_
m256d - Lanewise
sqrt
onf64
lanes. - store_
high_ m128d_ s - Stores the high lane value to the reference given.
- store_
i64_ m128i_ s - Stores the value to the reference given.
- store_
m128 - Stores the value to the reference given.
- store_
m256 - Store data from a register into memory.
- store_
m128_ s - Stores the low lane value to the reference given.
- store_
m128d - Stores the value to the reference given.
- store_
m128d_ s - Stores the low lane value to the reference given.
- store_
m128i - Stores the value to the reference given.
- store_
m256d - Store data from a register into memory.
- store_
m256i - Store data from a register into memory.
- store_
masked_ i32_ m128i - Stores the
i32
masked lanes given to the reference. - store_
masked_ i32_ m256i - Stores the
i32
masked lanes given to the reference. - store_
masked_ i64_ m128i - Stores the
i32
masked lanes given to the reference. - store_
masked_ i64_ m256i - Stores the
i32
masked lanes given to the reference. - store_
masked_ m128 - Store data from a register into memory according to a mask.
- store_
masked_ m256 - Store data from a register into memory according to a mask.
- store_
masked_ m128d - Store data from a register into memory according to a mask.
- store_
masked_ m256d - Store data from a register into memory according to a mask.
- store_
reverse_ m128 - Stores the value to the reference given in reverse order.
- store_
reversed_ m128d - Stores the value to the reference given.
- store_
splat_ m128 - Stores the low lane value to all lanes of the reference given.
- store_
splat_ m128d - Stores the low lane value to all lanes of the reference given.
- store_
unaligned_ hi_ lo_ m256 - Store data from a register into memory.
- store_
unaligned_ hi_ lo_ m256d - Store data from a register into memory.
- store_
unaligned_ hi_ lo_ m256i - Store data from a register into memory.
- store_
unaligned_ m128 - Stores the value to the reference given.
- store_
unaligned_ m256 - Store data from a register into memory.
- store_
unaligned_ m128d - Stores the value to the reference given.
- store_
unaligned_ m128i - Stores the value to the reference given.
- store_
unaligned_ m256d - Store data from a register into memory.
- store_
unaligned_ m256i - Store data from a register into memory.
- sub_
horizontal_ i16_ m128i - Subtract horizontal pairs of
i16
values, pack the outputs asa
thenb
. - sub_
horizontal_ i16_ m256i - Horizontal
a - b
with lanes asi16
. - sub_
horizontal_ i32_ m128i - Subtract horizontal pairs of
i32
values, pack the outputs asa
thenb
. - sub_
horizontal_ i32_ m256i - Horizontal
a - b
with lanes asi32
. - sub_
horizontal_ m128 - Subtract each lane horizontally, pack the outputs as
a
thenb
. - sub_
horizontal_ m256 - Subtract adjacent
f32
lanes. - sub_
horizontal_ m128d - Subtract each lane horizontally, pack the outputs as
a
thenb
. - sub_
horizontal_ m256d - Subtract adjacent
f64
lanes. - sub_
horizontal_ saturating_ i16_ m128i - Subtract horizontal pairs of
i16
values, saturating, pack the outputs asa
thenb
. - sub_
horizontal_ saturating_ i16_ m256i - Horizontal saturating
a - b
with lanes asi16
. - sub_
i8_ m128i - Lanewise
a - b
with lanes asi8
. - sub_
i8_ m256i - Lanewise
a - b
with lanes asi8
. - sub_
i16_ m128i - Lanewise
a - b
with lanes asi16
. - sub_
i16_ m256i - Lanewise
a - b
with lanes asi16
. - sub_
i32_ m128i - Lanewise
a - b
with lanes asi32
. - sub_
i32_ m256i - Lanewise
a - b
with lanes asi32
. - sub_
i64_ m128i - Lanewise
a - b
with lanes asi64
. - sub_
i64_ m256i - Lanewise
a - b
with lanes asi64
. - sub_
m128 - Lanewise
a - b
. - sub_
m256 - Lanewise
a - b
withf32
lanes. - sub_
m128_ s - Low lane
a - b
, other lanes unchanged. - sub_
m128d - Lanewise
a - b
. - sub_
m128d_ s - Lowest lane
a - b
, high lane unchanged. - sub_
m256d - Lanewise
a - b
withf64
lanes. - sub_
saturating_ i8_ m128i - Lanewise saturating
a - b
with lanes asi8
. - sub_
saturating_ i8_ m256i - Lanewise saturating
a - b
with lanes asi8
. - sub_
saturating_ i16_ m128i - Lanewise saturating
a - b
with lanes asi16
. - sub_
saturating_ i16_ m256i - Lanewise saturating
a - b
with lanes asi16
. - sub_
saturating_ u8_ m128i - Lanewise saturating
a - b
with lanes asu8
. - sub_
saturating_ u8_ m256i - Lanewise saturating
a - b
with lanes asu8
. - sub_
saturating_ u16_ m128i - Lanewise saturating
a - b
with lanes asu16
. - sub_
saturating_ u16_ m256i - Lanewise saturating
a - b
with lanes asu16
. - sum_
of_ u8_ abs_ diff_ m128i - Compute “sum of
u8
absolute differences”. - sum_
of_ u8_ abs_ diff_ m256i - Compute “sum of
u8
absolute differences”. - test_
all_ ones_ m128i - Tests if all bits are 1.
- test_
all_ zeroes_ m128i - Returns if all masked bits are 0,
(a & mask) as u128 == 0
- test_
mixed_ ones_ and_ zeroes_ m128i - Returns if, among the masked bits, there’s both 0s and 1s
- testc_
m128 - Compute the bitwise of sign bit NOT of
a
and then AND withb
, returns 1 if the result is zero, otherwise 0. - testc_
m256 - Compute the bitwise of sign bit NOT of
a
and then AND withb
, returns 1 if the result is zero, otherwise 0. - testc_
m128d - Compute the bitwise of sign bit NOT of
a
and then AND withb
, returns 1 if the result is zero, otherwise 0. - testc_
m128i - Compute the bitwise NOT of
a
and then AND withb
, returns 1 if the result is zero, otherwise 0. - testc_
m256d - Compute the bitwise of sign bit NOT of
a
and then AND withb
, returns 1 if the result is zero, otherwise 0. - testc_
m256i - Compute the bitwise NOT of
a
and then AND withb
, returns 1 if the result is zero, otherwise 0. - testz_
m128 - Computes the bitwise AND of 256 bits in
a
andb
, returns 1 if the result is zero, otherwise 0. - testz_
m256 - Computes the bitwise AND of 256 bits in
a
andb
, returns 1 if the result is zero, otherwise 0. - testz_
m128d - Computes the bitwise of sign bitAND of 256 bits in
a
andb
, returns 1 if the result is zero, otherwise 0. - testz_
m128i - Computes the bitwise AND of 256 bits in
a
andb
, returns 1 if the result is zero, otherwise 0. - testz_
m256d - Computes the bitwise of sign bit AND of 256 bits in
a
andb
, returns 1 if the result is zero, otherwise 0. - testz_
m256i - Computes the bitwise of sign bit AND of 256 bits in
a
andb
, returns 1 if the result is zero, otherwise 0. - trailing_
zero_ count_ u32 - Counts the number of trailing zero bits in a
u32
. - trailing_
zero_ count_ u64 - Counts the number of trailing zero bits in a
u64
. - transpose_
four_ m128 - Transpose four
m128
as if they were a 4x4 matrix. - truncate_
m128_ to_ m128i - Truncate the
f32
lanes toi32
lanes. - truncate_
m128d_ to_ m128i - Truncate the
f64
lanes to the loweri32
lanes (upperi32
lanes 0). - truncate_
to_ i32_ m128d_ s - Truncate the lower lane into an
i32
. - truncate_
to_ i64_ m128d_ s - Truncate the lower lane into an
i64
. - unpack_
hi_ m256 - Unpack and interleave the high lanes.
- unpack_
hi_ m256d - Unpack and interleave the high lanes.
- unpack_
high_ i8_ m128i - Unpack and interleave high
i8
lanes ofa
andb
. - unpack_
high_ i8_ m256i - Unpack and interleave high
i8
lanes ofa
andb
. - unpack_
high_ i16_ m128i - Unpack and interleave high
i16
lanes ofa
andb
. - unpack_
high_ i16_ m256i - Unpack and interleave high
i16
lanes ofa
andb
. - unpack_
high_ i32_ m128i - Unpack and interleave high
i32
lanes ofa
andb
. - unpack_
high_ i32_ m256i - Unpack and interleave high
i32
lanes ofa
andb
. - unpack_
high_ i64_ m128i - Unpack and interleave high
i64
lanes ofa
andb
. - unpack_
high_ i64_ m256i - Unpack and interleave high
i64
lanes ofa
andb
. - unpack_
high_ m128 - Unpack and interleave high lanes of
a
andb
. - unpack_
high_ m128d - Unpack and interleave high lanes of
a
andb
. - unpack_
lo_ m256 - Unpack and interleave the high lanes.
- unpack_
lo_ m256d - Unpack and interleave the high lanes.
- unpack_
low_ i8_ m128i - Unpack and interleave low
i8
lanes ofa
andb
. - unpack_
low_ i8_ m256i - Unpack and interleave low
i8
lanes ofa
andb
. - unpack_
low_ i16_ m128i - Unpack and interleave low
i16
lanes ofa
andb
. - unpack_
low_ i16_ m256i - Unpack and interleave low
i16
lanes ofa
andb
. - unpack_
low_ i32_ m128i - Unpack and interleave low
i32
lanes ofa
andb
. - unpack_
low_ i32_ m256i - Unpack and interleave low
i32
lanes ofa
andb
. - unpack_
low_ i64_ m128i - Unpack and interleave low
i64
lanes ofa
andb
. - unpack_
low_ i64_ m256i - Unpack and interleave low
i64
lanes ofa
andb
. - unpack_
low_ m128 - Unpack and interleave low lanes of
a
andb
. - unpack_
low_ m128d - Unpack and interleave low lanes of
a
andb
. - zero_
extend_ m128 - Zero extend an
m128
tom256
- zero_
extend_ m128d - Zero extend an
m128d
tom256d
- zero_
extend_ m128i - Zero extend an
m128i
tom256i
- zeroed_
m128 - All lanes zero.
- zeroed_
m256 - A zeroed
m256
- zeroed_
m128d - Both lanes zero.
- zeroed_
m128i - All lanes zero.
- zeroed_
m256d - A zeroed
m256d
- zeroed_
m256i - A zeroed
m256i