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

kaidokert / fixed-bigint-rs / 29712440137
97%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2026 02:22AM UTC
Jobs 1
Files 62
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

20 Jul 2026 02:21AM UTC coverage: 97.291% (+0.03%) from 97.265%
29712440137

push

github

web-flow
Add ct_select + Ct arms for Saturating*/AbsDiff on HeaplessBigInt (#169)

* Add ct_select and Ct arms for Saturating* / AbsDiff on HeaplessBigInt

Introduces `ct_select` (cmp.rs) — a thin wrapper over the existing
`subtle::ConditionallySelectable` whole-value masked select, the runtime
analog of FixedUInt's `const_ct_select` (heapless needs no const-fn variant
since its impls aren't const-evaluated). Result width is max(operand len),
choice-independent.

Uses it to add the branchless Ct arms for the immediate dependents that were
Nct-only for lack of a select: SaturatingAdd/Sub/Mul (pick the saturation
sentinel vs the wrapped result on the overflow/borrow flag) and AbsDiff
(pick a-b vs -(a-b) on the borrow). All additive — the Nct impls are
untouched, so no bound cascade into the test harness; the Ct impls carry the
extra `T: subtle::ConditionallySelectable` bound.

NextPowerOfTwo (the remaining const_ct_select dependent on FixedUInt) is a
more involved bit-scan/zero-handling case, left for a follow-up.

* Tidy Ct abs_diff trait calls to match arith.rs style

Drop the verbose <Self as const_num_traits::OverflowingSub>:: / <Self as
WrappingSub>:: qualified paths in favor of imported by-value trait calls
(OverflowingSub::overflowing_sub / WrappingSub::wrapping_sub), matching how
the Ct saturating impls are written in arith.rs. Method-call syntax
(self.overflowing_sub(&other)) can't be used here — the by-value trait
method shadows the by-ref inherent at the value receiver, so &other
mismatches the expected Self. The WrappingSub/Zero imports stay: Self::zero()
needs Zero and the negation needs WrappingSub. Addresses review on #169.

55 of 55 new or added lines in 3 files covered. (100.0%)

5674 of 5832 relevant lines covered (97.29%)

7104.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29712440137.1 20 Jul 2026 02:22AM UTC 62
97.29
GitHub Action Run
Source Files on build 29712440137
  • Tree
  • List 62
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29712440137
  • 789ef8c0 on github
  • Prev Build on main (#29708457657)
  • Next Build on main (#29714086842)
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