Skip to content

Conversation

@tarcieri
Copy link
Member

Also fills in some missing CtAssign impls and leverages the new CtSelectUsingCtAssign marker trait.

The *Slice impls make it possible to use CtAssign and CtEq on [T] for the types which impl it in this crate. Limb uses an optimized implementation which does what the impls on Uint/UintRef were previously doing: leveraging as_(mut_)words and then using the impls on that.

Now everything should just work!

@codecov
Copy link

codecov bot commented Jan 18, 2026

Codecov Report

❌ Patch coverage is 18.36735% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.65%. Comparing base (d294367) to head (21afe27).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/modular/boxed_monty_form/ct.rs 0.00% 15 Missing ⚠️
src/modular/monty_form/ct.rs 0.00% 13 Missing ⚠️
src/modular/const_monty_form/ct.rs 0.00% 4 Missing ⚠️
src/non_zero.rs 0.00% 3 Missing ⚠️
src/odd.rs 0.00% 3 Missing ⚠️
src/uint/ref_type/ct.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1106      +/-   ##
==========================================
- Coverage   79.66%   79.65%   -0.01%     
==========================================
  Files         176      176              
  Lines       18211    18212       +1     
==========================================
- Hits        14507    14506       -1     
- Misses       3704     3706       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Also fills in some missing `CtAssign` impls and leverages the new
`CtSelectUsingCtAssign` marker trait.

The `*Slice` impls make it possible to use `CtAssign` and `CtEq` on
`[T]` for the types which impl it in this crate. `Limb` uses an
optimized implementation which does what the impls on `Uint`/`UintRef`
were previously doing: leveraging `as_(mut_)words` and then using the
impls on that.

Now everything should just work!
@tarcieri tarcieri force-pushed the add-ctutils-trait-impls branch from 0140031 to 21afe27 Compare January 18, 2026 06:03
@tarcieri tarcieri merged commit 8154d5b into master Jan 18, 2026
27 checks passed
@tarcieri tarcieri deleted the add-ctutils-trait-impls branch January 18, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants