• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kaidokert / modmath-rs / 22271885342
99%

Build:
DEFAULT BRANCH: main
Ran 22 Feb 2026 06:20AM UTC
Jobs 1
Files 10
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Feb 2026 06:19AM UTC coverage: 99.301% (+1.2%) from 98.053%
22271885342

push

github

web-flow
Consolidate strict code (#8)

* Apply bitmask optimization and Hensel canonicalization across all variants
Port strict_mont.rs improvements to basic and constrained:
- from_montgomery: use & mask instead of % r, add r_bits==0 guard
- Hensel lifting: canonicalize N' to [0, R)
- constrained mod_exp: use & one for parity, skip trailing square

* Address review feedback: fix comments, remove dead canonicalization
- r_bits==0 comment: clarify it's a fast path for R=1, not underflow avoidance
- Hensel N' canonicalization: remove dead code (n_prime is already in [0,R)
  after lifting, and % r / < zero() is unreachable for unsigned types)
* Remove stale Rem bounds from strict_from_montgomery, fix test name
- strict_from_montgomery no longer uses % or %=, drop Rem/RemAssign bounds
- Rename overflow_prevention test to large_modulus, clarify limitations
- montgomery_mul: document O(k) mod_mul defeating performance purpose
- from_montgomery: document m*N overflow risk at key sizes
- Both fixed in Phase 1 with WideningMul (see ROADMAP.md)
- Fix misleading test comment about default NPrimeMethod

138 of 148 new or added lines in 3 files covered. (93.24%)

1 existing line in 1 file now uncovered.

3125 of 3147 relevant lines covered (99.3%)

756.57 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
98.73
-0.76% modmath/src/montgomery/basic_mont.rs
3
98.15
-0.68% modmath/src/montgomery/constrained_mont.rs
4
98.83
6.24% modmath/src/montgomery/strict_mont.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
98.83
6.24% modmath/src/montgomery/strict_mont.rs
Jobs
ID Job ID Ran Files Coverage
1 22271885342.1 22 Feb 2026 06:20AM UTC 10
99.3
GitHub Action Run
Source Files on build 22271885342
  • Tree
  • List 10
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22271885342
  • 057359f0 on github
  • Prev Build on main (#22269459462)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc