Repository navigation
Commit b323439
committed
tfm: clear the digit above the modulus in the CT modular helpers
- fp_addmod_ct(), fp_submod_ct() and fp_div_2_mod_ct() zero the
destination's digit at the modulus length after writing the
result.
- mp_test_addsubmod_ct() runs on fast math and starts each
destination one digit wider than the modulus; it and
mp_test_mont() check the result with
mp_test_no_digits_above_used().
- os-check-linux.json gains a fastmath-mont-red-ct leg.
Issue: F-18450, F-184471 parent d1a69c6 commit b323439
3 files changed
Lines changed: 32 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
957 | 957 | | |
958 | 958 | | |
959 | 959 | | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
960 | 963 | | |
961 | 964 | | |
962 | 965 | | |
| |||
1612 | 1615 | | |
1613 | 1616 | | |
1614 | 1617 | | |
| 1618 | + | |
1615 | 1619 | | |
1616 | 1620 | | |
1617 | 1621 | | |
| |||
1661 | 1665 | | |
1662 | 1666 | | |
1663 | 1667 | | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1664 | 1671 | | |
1665 | 1672 | | |
1666 | 1673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98347 | 98347 | | |
98348 | 98348 | | |
98349 | 98349 | | |
98350 | | - | |
| 98350 | + | |
| 98351 | + | |
98351 | 98352 | | |
98352 | 98353 | | |
98353 | 98354 | | |
| |||
98378 | 98379 | | |
98379 | 98380 | | |
98380 | 98381 | | |
98381 | | - | |
98382 | | - | |
| 98382 | + | |
| 98383 | + | |
| 98384 | + | |
| 98385 | + | |
| 98386 | + | |
98383 | 98387 | | |
98384 | 98388 | | |
98385 | 98389 | | |
98386 | 98390 | | |
98387 | 98391 | | |
98388 | 98392 | | |
98389 | | - | |
| 98393 | + | |
98390 | 98394 | | |
98391 | 98395 | | |
98392 | 98396 | | |
98393 | 98397 | | |
98394 | 98398 | | |
98395 | | - | |
| 98399 | + | |
| 98400 | + | |
| 98401 | + | |
98396 | 98402 | | |
98397 | 98403 | | |
98398 | 98404 | | |
98399 | 98405 | | |
98400 | 98406 | | |
98401 | 98407 | | |
98402 | | - | |
| 98408 | + | |
98403 | 98409 | | |
98404 | 98410 | | |
98405 | 98411 | | |
98406 | 98412 | | |
98407 | 98413 | | |
98408 | | - | |
| 98414 | + | |
| 98415 | + | |
| 98416 | + | |
98409 | 98417 | | |
98410 | 98418 | | |
98411 | 98419 | | |
98412 | 98420 | | |
98413 | 98421 | | |
98414 | 98422 | | |
98415 | | - | |
| 98423 | + | |
98416 | 98424 | | |
98417 | 98425 | | |
98418 | 98426 | | |
98419 | 98427 | | |
98420 | 98428 | | |
98421 | 98429 | | |
98422 | 98430 | | |
98423 | | - | |
| 98431 | + | |
98424 | 98432 | | |
98425 | 98433 | | |
98426 | 98434 | | |
| |||
99198 | 99206 | | |
99199 | 99207 | | |
99200 | 99208 | | |
| 99209 | + | |
| 99210 | + | |
99201 | 99211 | | |
99202 | 99212 | | |
99203 | 99213 | | |
| |||
99604 | 99614 | | |
99605 | 99615 | | |
99606 | 99616 | | |
99607 | | - | |
| 99617 | + | |
| 99618 | + | |
99608 | 99619 | | |
99609 | 99620 | | |
99610 | 99621 | | |
| |||
0 commit comments