#[repr(C)]
pub enum CpuFeatures {
Show 41 variants CPU_MMX, CPU_SSE, CPU_SSE2, CPU_SSE3, CPU_SSSE3, CPU_SSE4_1, CPU_SSE4_2, CPU_POPCNT, CPU_FP16, CPU_AVX, CPU_AVX2, CPU_FMA3, CPU_AVX_512F, CPU_AVX_512BW, CPU_AVX_512CD, CPU_AVX_512DQ, CPU_AVX_512ER, CPU_AVX_512IFMA512, CPU_AVX_512PF, CPU_AVX_512VBMI, CPU_AVX_512VL, CPU_AVX_512VBMI2, CPU_AVX_512VNNI, CPU_AVX_512BITALG, CPU_AVX_512VPOPCNTDQ, CPU_AVX_5124VNNIW, CPU_AVX_5124FMAPS, CPU_NEON, CPU_MSA, CPU_RISCVV, CPU_VSX, CPU_VSX3, CPU_RVV, CPU_AVX512_SKX, CPU_AVX512_COMMON, CPU_AVX512_KNL, CPU_AVX512_KNM, CPU_AVX512_CNL, CPU_AVX512_CLX, CPU_AVX512_ICL, CPU_MAX_FEATURE,
}
Expand description

Available CPU features.

Variants

CPU_MMX

CPU_SSE

CPU_SSE2

CPU_SSE3

CPU_SSSE3

CPU_SSE4_1

CPU_SSE4_2

CPU_POPCNT

CPU_FP16

CPU_AVX

CPU_AVX2

CPU_FMA3

CPU_AVX_512F

CPU_AVX_512BW

CPU_AVX_512CD

CPU_AVX_512DQ

CPU_AVX_512ER

CPU_AVX_512IFMA512

CPU_AVX_512PF

CPU_AVX_512VBMI

CPU_AVX_512VL

CPU_AVX_512VBMI2

CPU_AVX_512VNNI

CPU_AVX_512BITALG

CPU_AVX_512VPOPCNTDQ

CPU_AVX_5124VNNIW

CPU_AVX_5124FMAPS

CPU_NEON

CPU_MSA

CPU_RISCVV

CPU_VSX

CPU_VSX3

CPU_RVV

CPU_AVX512_SKX

Skylake-X with AVX-512F/CD/BW/DQ/VL

CPU_AVX512_COMMON

Common instructions AVX-512F/CD for all CPUs that support AVX-512

CPU_AVX512_KNL

Knights Landing with AVX-512F/CD/ER/PF

CPU_AVX512_KNM

Knights Mill with AVX-512F/CD/ER/PF/4FMAPS/4VNNIW/VPOPCNTDQ

CPU_AVX512_CNL

Cannon Lake with AVX-512F/CD/BW/DQ/VL/IFMA/VBMI

CPU_AVX512_CLX

Cascade Lake with AVX-512F/CD/BW/DQ/VL/VNNI

CPU_AVX512_ICL

Ice Lake with AVX-512F/CD/BW/DQ/VL/IFMA/VBMI/VNNI/VBMI2/BITALG/VPOPCNTDQ

CPU_MAX_FEATURE

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.