Skip to content

Conversation

fjarri
Copy link
Contributor

@fjarri fjarri commented Dec 16, 2023

I thought about adding NonZero::const_new_unchecked() and ConstOption::unwrap_unchecked() for use in tight loops, but using expect doesn't seem to decrease performance.

@fjarri fjarri marked this pull request as ready for review December 16, 2023 05:41
@tarcieri tarcieri merged commit ad1b29d into RustCrypto:master Dec 17, 2023
@fjarri fjarri deleted the const-choice branch December 17, 2023 23:25
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.

Make a const equivalent of subtle::CtOption Use wide arithmetic in CtChoice

3 participants