INNER CODE UNIT · Rust

equal_up_to_seed

rust-lang/rust · compiler/rustc_abi/src/lib.rs:250

    pub fn equal_up_to_seed(&self, other: &Self) -> bool {
        let ReprOptions { int, align, pack, flags, scalable, field_shuffle_seed: _ } = *self;
        int == other.int
            && align == other.align
            && pack == other.pack
            && flags == other.flags
            && scalable == other.scalable
    }
}

/// The maximum supported number of lanes in a SIMD vector.
///
/// This value is selected based on backend support:
/// * LLVM does not appear to have a vector width limit.
/// * Cranelift stores the base-2 log of the lane count in a 4 bit integer.
pub const MAX_SIMD_LANES: u16 = 1 << 0xF;

/// The number of lanes in a [`BackendRepr::SimdVector`], `1..=`[`MAX_SIMD_LANES`].

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…