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

kaidokert / fixed-bigint-rs / 29697842029
98%
main: 97%

Build:
Build:
LAST BUILD BRANCH: agent/use-shared-hardware-workflow
DEFAULT BRANCH: main
Ran 19 Jul 2026 05:58PM UTC
Jobs 1
Files 48
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

19 Jul 2026 05:57PM UTC coverage: 97.785% (-0.03%) from 97.818%
29697842029

Pull #157

github

kaidokert
Implement num_integer::Integer for HeaplessBigInt

The last Tier-1 parity item — gcd/lcm/div_floor/mod_floor/divides/
is_multiple_of/is_even/is_odd/div_rem, Nct-only, mirroring FixedUInt.

- div_floor/mod_floor/div_rem: the unsigned div/rem (floor == truncating).
- gcd: Stein's binary algorithm. Heapless `>>` narrows `len`, so the running
  values shrink — value-correct (comparisons are value-based), but the result
  is pinned to the operand width max(len): widen before the final `<< shift`
  so no bit is lost and the width matches FixedUInt<k>. Dedicated
  heapless-internal test for the sub-capacity width case.
- lcm = a / gcd(a, b) * b; is_even/is_odd: O(1) LSB check like FixedUInt.

Tests: generic gcd/lcm/div/parity for both carriers (carrier_num_traits) plus
heapless-internal gcd width-preservation and multi-limb gcd/lcm.

Tier-1 parity is now complete: HeaplessBigInt<_, Nct> is a drop-in
num_traits::PrimInt + num_integer::Integer.
Pull Request #157: Implement num_integer::Integer for HeaplessBigInt

60 of 63 new or added lines in 1 file covered. (95.24%)

4812 of 4921 relevant lines covered (97.79%)

5932.01 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
95.24
src/heapless/num_integer_impl.rs
Jobs
ID Job ID Ran Files Coverage
1 29697842029.1 19 Jul 2026 05:58PM UTC 48
97.79
GitHub Action Run
Source Files on build 29697842029
  • Tree
  • List 48
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29697842029
  • Pull Request #157
  • PR Base - main (#29697383625)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc