Skip to content

Commit

Permalink
struct BitInt: Add {u,i}N arbitrary width integers.
Browse files Browse the repository at this point in the history
This should add no overhead and will help optimize cases (elide bounds checks)
where a specific range is used to index an array.
It'll also help greatly in documenting the sizes of various fields, vars, etc.
  • Loading branch information
kkysen committed Nov 27, 2023
1 parent 48a4b1b commit 6209176
Show file tree
Hide file tree
Showing 2 changed files with 588 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub mod src {
pub mod align;
mod assume;
mod cdef;
pub mod bit_int;
#[cfg_attr(not(feature = "bitdepth_16"), allow(dead_code))]
mod cdef_apply_tmpl_16;
#[cfg_attr(not(feature = "bitdepth_8"), allow(dead_code))]
Expand Down
Loading

0 comments on commit 6209176

Please sign in to comment.