Skip to content
API REFERENCEUsage guides →

cellpack::scans::Isa ​

enum

Module contract · All interfaces

At a glance ​

pub enum Isa {
    Scalar,
    Avx2,
    Avx512,
}

The bound instruction set, by name or as Isa. Instruction set of a kernel set, ordered by capability.

Fields and variants ​

Scalar ​

Scalar

Portable loops, the only set off x86-64.

Avx2 ​

Avx2

8-lane vectors (AVX2, popcnt, FMA).

Avx512 ​

Avx512

16-lane vectors (AVX-512 F, BW, DQ and VL on top of AVX2).

Member index ​

3 of 3 members

  • ALLEvery set, by ascending capability.
  • nameThe name CELLPACK_KERNELS accepts and reports show.
  • supportedWhether this CPU runs the set.

Methods and associated constants ​

ALL ​

pub const ALL: [Isa; 3]

Every set, by ascending capability.

name ​

pub const fn name(self) -> &'static str

The name CELLPACK_KERNELS accepts and reports show.

supported ​

pub fn supported(self) -> bool

Whether this CPU runs the set.

Implemented traits ​

impl Clone for Isa
impl Debug for Isa
impl Display for Isa
impl Hash for Isa
impl Ord for Isa
impl PartialEq for Isa
impl PartialOrd for Isa

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition