Skip to content

demo: use `funnel_sh[lr] directly in u256 shifts#1153

Draft
tgross35 wants to merge 2 commits intorust-lang:mainfrom
tgross35:funnel-shift-demo
Draft

demo: use `funnel_sh[lr] directly in u256 shifts#1153
tgross35 wants to merge 2 commits intorust-lang:mainfrom
tgross35:funnel-shift-demo

Conversation

@tgross35
Copy link
Copy Markdown
Contributor

No description provided.

@tgross35 tgross35 force-pushed the funnel-shift-demo branch from e6b29b5 to 3ca3177 Compare March 31, 2026 00:11
@tgross35 tgross35 changed the title demo: use fullen shifts for u256 directly demo: use funnel shifts for u256 directly Mar 31, 2026
@tgross35 tgross35 changed the title demo: use funnel shifts for u256 directly demo: use `funnel_sh[lr] directly in u256 shifts Mar 31, 2026
@tgross35 tgross35 force-pushed the funnel-shift-demo branch from 3ca3177 to e711fc3 Compare March 31, 2026 00:21
tgross35 added 2 commits April 9, 2026 20:06
Switch to an algorithm using word-sized operations on an array to do
coarse shifts, then funnel shifts for the bit shifts. The result is
quite close to what LLVM generates when using native `u256` types.
@tgross35 tgross35 force-pushed the funnel-shift-demo branch from e711fc3 to 3b4c3a3 Compare April 10, 2026 00:06
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 10, 2026

☔ The latest upstream changes (possibly #1193) made this pull request unmergeable. Please resolve the merge conflicts.

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.

2 participants