alloy-rs / alloy-rs/ruint

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

未关闭
#302 0 条评论 0 个 reaction 已指派 1 人 已被 @recmo 认领 在 GitHub 查看
optimize tracker
主要语言
Rust
星标
225
派生
70
平均合并
16 小时 54 分钟
30 天内合并 PR
8

描述

*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)*

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。