Skip to content

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
@rozbb rozbb merged commit fc88157 into main Aug 22, 2025
46 checks passed
@rozbb rozbb deleted the scalar-div-by-2 branch September 4, 2025 03:25
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.

4 participants