Skip to main content

fast_cost_lut

Function fast_cost_lut 

Source
pub fn fast_cost_lut(
    opcode_byte: u8,
    args: &Args,
    pc: u32,
    code: &[u8],
    bitmask: &[u8],
    mem_cycles: u8,
) -> FastCost
Expand description

Compute FastCost via lookup table — replaces the 256-arm match dispatch with a single array access + lightweight mask computation.