Skip to content

Commit

Permalink
adds support for LMS sizes (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo authored Sep 30, 2024
1 parent 56c7fec commit dcde115
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/sizes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,12 @@ mod extra_sizes {
pub type U1530 = uint!(0 1 0 1 1 1 1 1 1 0 1);
pub type U1658 = uint!(0 1 0 1 1 1 1 0 0 1 1);

// LMS sizes
pub type U2047 = uint!(1 1 1 1 1 1 1 1 1 1 1);
pub type U2180 = uint!(0 0 1 0 0 0 0 1 0 0 0 1);
pub type U4292 = uint!(0 0 1 0 0 0 1 1 0 0 0 0 1);
pub type U8516 = uint!(0 0 1 0 0 0 1 0 1 0 0 0 0 1);

impl_array_sizes! {
1040 => U1040,
1056 => U1056,
Expand Down Expand Up @@ -1051,4 +1057,12 @@ mod extra_sizes {
1530 => U1530,
1658 => U1658,
}

// LMS sizes
impl_array_sizes! {
2047 => U2047,
2180 => U2180,
4292 => U4292,
8516 => U8516,
}
}

0 comments on commit dcde115

Please sign in to comment.