Sha256: 930ecd722ef9cef5e3a807bcab310034b1b6d17e6153e5c69a53858865b11c51

Contents?: true

Size: 804 Bytes

Versions: 10

Compression:

Stored size: 804 Bytes

Contents

//! This module contains constants that are shared between the codegen and the meta crate, so they
//! are kept in sync.

// Numbering scheme for value types:
//
// 0: Void
// 0x01-0x6f: Special types
// 0x70-0x7d: Lane types
// 0x7e-0x7f: Reference types
// 0x80-0xff: Vector types
// 0x100-0x17f: Dynamic Vector types
//
// Vector types are encoded with the lane type in the low 4 bits and log2(lanes)
// in the next highest 4 bits, giving a range of 2-256 lanes.

// Dynamic vector types are encoded similarly.

/// Start of the lane types.
pub const LANE_BASE: u16 = 0x70;

/// Base for reference types.
pub const REFERENCE_BASE: u16 = 0x7E;

/// Start of the 2-lane vector types.
pub const VECTOR_BASE: u16 = 0x80;

/// Start of the dynamic vector types.
pub const DYNAMIC_VECTOR_BASE: u16 = 0x100;

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.116.1/src/constants.rs
wasmtime-28.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.115.0/src/constants.rs
wasmtime-27.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.114.0/src/constants.rs
wasmtime-26.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.113.0/src/constants.rs
wasmtime-25.0.2 ./ext/cargo-vendor/cranelift-codegen-shared-0.112.2/src/constants.rs
wasmtime-25.0.1 ./ext/cargo-vendor/cranelift-codegen-shared-0.112.1/src/constants.rs
wasmtime-25.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.112.0/src/constants.rs
wasmtime-24.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.111.0/src/constants.rs
wasmtime-23.0.2 ./ext/cargo-vendor/cranelift-codegen-shared-0.110.2/src/constants.rs
wasmtime-22.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.109.0/src/constants.rs