Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support/num_traits: Expose actual merged mul_add algo. #302

Open
github-actions bot opened this issue Aug 28, 2023 · 0 comments
Open

support/num_traits: Expose actual merged mul_add algo. #302

github-actions bot opened this issue Aug 28, 2023 · 0 comments
Assignees
Labels
optimize Potential optimization opportunity tracker Issue tracked by bot

Comments

@github-actions
Copy link

On 2023-08-28 @recmo wrote in 585c5ce “Merge pull request #298 from recmo/num-traits”:

Expose actual merged mul_add algo.

impl<const BITS: usize, const LIMBS: usize> MulAdd for Uint<BITS, LIMBS> {
    type Output = Self;

    #[inline(always)]
    fn mul_add(self, a: Self, b: Self) -> Self::Output {
        // OPT: Expose actual merged mul_add algo.
        (self * a) + b
    }
}

impl<const BITS: usize, const LIMBS: usize> MulAddAssign for Uint<BITS, LIMBS> {

From src/support/num_traits.rs:207

@github-actions github-actions bot added optimize Potential optimization opportunity tracker Issue tracked by bot labels Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimize Potential optimization opportunity tracker Issue tracked by bot
Projects
None yet
Development

No branches or pull requests

1 participant