Skip to content

Use only useful bits in shift operations - #133

Merged
cedricjiang merged 1 commit into
mainfrom
shift
Jul 18, 2025
Merged

cedricjiang merged 1 commit into
mainfrom
shift

Conversation

@cedricjiang

Copy link
Copy Markdown
Contributor

No description provided.

@cedricjiang
cedricjiang requested a review from rickwebiii July 17, 2025 21:05
Comment thread mux_circuits/src/bitshift.rs Outdated
for dir in [ShiftDirection::Left, ShiftDirection::Right] {
for width in 1..=6u16 {
let mask = (1 << width) - 1;
for shift_width in 1..=6u16 {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this tests now iterates over both width and shift_width, more thorough (yet slower but ok)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant