Changed mul_low algorithm to radix-16-1 algorithm with swap #17

Merged
ShatteredMINT merged 2 commits from Micha_i/symphony_stdlib:fast-math into main 2026-09-04 23:20:18 +02:00
Contributor

Old algorithm:
40 894 464 * 13 = 531 628 032 in 261 cycles
939 524 096 * 13 = 3 623 878 656 in 261 cycles

Radix-4 algorithm:
40 894 464 * 13 = 531 628 032 in 187 cycles
939 524 096 * 13 = 3 623 878 656 in 215 cycles

Radix-16-1 algorithm:
40 894 464 * 13 = 531 628 032 in 29 cycles
939 524 096 * 13 = 3 623 878 656 in 29 cycles
-1 * -1 = 1 in 160 cycles

Old algorithm: `40 894 464 * 13 = 531 628 032` in 261 cycles `939 524 096 * 13 = 3 623 878 656` in 261 cycles Radix-4 algorithm: `40 894 464 * 13 = 531 628 032` in 187 cycles `939 524 096 * 13 = 3 623 878 656` in 215 cycles Radix-16-1 algorithm: `40 894 464 * 13 = 531 628 032` in 29 cycles `939 524 096 * 13 = 3 623 878 656` in 29 cycles `-1 * -1 = 1` in 160 cycles
Micha_i added 1 commit 2026-09-04 23:11:31 +02:00
Micha_i added 1 commit 2026-09-04 23:11:42 +02:00
ShatteredMINT merged commit 5c145dc10b into main 2026-09-04 23:20:18 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TCShenanigans/symphony_stdlib#17