Skip to content

Expose and optimize wrapping_neg#252

Merged
tarcieri merged 2 commits into
RustCrypto:masterfrom
andrewwhitehead:wrapping_neg
Jun 25, 2023
Merged

Expose and optimize wrapping_neg#252
tarcieri merged 2 commits into
RustCrypto:masterfrom
andrewwhitehead:wrapping_neg

Conversation

@andrewwhitehead

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Comment thread src/uint/shl.rs Outdated

impl<const LIMBS: usize> Uint<LIMBS> {
/// Computes `self << 1` in constant-time, returning the overflowing bit as a `CtChoice`.
#[allow(unused)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's not public, I think we can safely remove it if it's unused

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated now

Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
@tarcieri tarcieri merged commit 0fdd45b into RustCrypto:master Jun 25, 2023
@tarcieri tarcieri mentioned this pull request Sep 4, 2023
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.

3 participants