Expand description
This module provides gadgets for performing indexed lookup operations for incrementing 8-bit values with carry, using lookup tables. It includes types and functions for constructing, populating, and testing increment lookup tables and their associated circuits.
Structs§
- Incr
- Represents an increment operation with carry in a lookup table.
- Incr
Indexed Lookup - Internal struct for indexed lookup logic for increment operations.
- Incr
Looker - Helper struct for producing increment lookups from input/carry pairs.
- Incr
Lookup - Represents the increment lookup table, supporting filling and permutation checks.
Functions§
- carry_
in_ circuit - Returns a circuit that describes the carry-in for the i_th bit of incrementing an 8-bit number by a carry-in bit. The circuit is a product of the lower bits.
- incr_
circuit - Returns a circuit that describes the increment operation for an 8-bit addition. The circuit encodes input, output, carry-in, and carry-out into a single value.
- merge_
incr_ cols - Merges the input, output, carry-in, and carry-out columns into a single B32 column for lookup.
- merge_
incr_ vals - Merges the input, output, carry-in, and carry-out values into a single u32 for lookup.