Skip to content

Scalar::div_by_2 #805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Scalar::div_by_2 #805

wants to merge 5 commits into from

Conversation

tarcieri
Copy link
Contributor

@tarcieri tarcieri commented Aug 14, 2025

Adds support for modular division by 2, such that the resulting dividend can be added to itself to obtain the original scalar.

Implemented using a conditional add and bitwise right shift over limbs.

Alternate take on #804

@tarcieri tarcieri mentioned this pull request Aug 14, 2025
@tarcieri tarcieri force-pushed the scalar-div-by-2 branch 5 times, most recently from 235c102 to 837abea Compare August 14, 2025 03:47
@tarcieri tarcieri changed the title [WIP] Scalar::div_by_2 Scalar::div_by_2 Aug 14, 2025
@tarcieri tarcieri marked this pull request as ready for review August 14, 2025 14:11
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