alloy-rs / alloy-rs/ruint

`support/num_traits`: Expose actual merged mul_add algo.

Open
#302 0 comments 0 reactions 1 assignee Claimed by @recmo View on GitHub
optimize tracker
Dominant language
Rust
Stars
225
Forks
70
Avg merge
16h 54m
Merged PRs (30d)
8

Description

*On 2023-08-28 @recmo wrote in [`585c5ce`](https://github.com/recmo/uint/commit/585c5ceb8cabe04c17ad4b8f4d835d3ea0328d60) “Merge pull request #298 from recmo/num-traits”:*

Expose actual merged mul_add algo.

```rust
impl MulAdd for Uint {
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 MulAddAssign for Uint {

```
*From [`src/support/num_traits.rs:207`](https://github.com/recmo/uint/blob/585c5ceb8cabe04c17ad4b8f4d835d3ea0328d60/src/support/num_traits.rs#L207)*

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.