forked from privacy-scaling-explorations/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROM Tables (LLC, MLC, MOC) and Bitstring Accumulation Table (#1222)
* feat: add ROM tables for fse code to value (sequence section) * fix: handle probability=0 case (fse) * todo: prob=-1 case not sure how to handle * feat: bitstring accumulation table
- Loading branch information
1 parent
0022835
commit 6b6f8d3
Showing
6 changed files
with
745 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
/// Since bitstrings to decode can be spanned over more than one byte from the encoded bytes, we | ||
/// construct a table to accumulate the binary values of the byte-unaligned bitstrings for decoding | ||
/// convenience. | ||
mod bitstring_accumulation; | ||
pub use bitstring_accumulation::BitstringAccumulationTable; | ||
|
||
/// Decode the regenerated size from the literals header. | ||
mod literals_header; | ||
pub use literals_header::LiteralsHeaderTable; | ||
|
||
/// The fixed code to Baseline/NumBits for Literal Length. | ||
mod rom_sequence_codes; | ||
pub use rom_sequence_codes::{ | ||
LiteralLengthCodes, MatchLengthCodes, MatchOffsetCodes, RomSequenceCodes, | ||
}; | ||
|
||
/// Validate the following tag given the tag currently being processed. | ||
mod rom_tag; | ||
pub use rom_tag::RomTagTable; |
Oops, something went wrong.