alloy-rs / alloy-rs/ruint

`algorithms/gcd/mod`: Compute using absolute value instead of patching sign.

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

描述

*On 2022-06-06 @recmo wrote in [`4c74c09`](https://github.com/recmo/uint/commit/4c74c09b4d6f425cda931e9f5e8d00f1367c4261) “Merge pull request #110 from recmo/gcd”:*

Compute using absolute value instead of patching sign.

```rust
m.apply(&mut s0, &mut s1);
m.apply(&mut t0, &mut t1);
even ^= !m.4;
}
}
// TODO: Compute using absolute value instead of patching sign.
if even {
// t negative
t0 = Uint::ZERO - t0;
} else {
// s negative

```
*From [`src/algorithms/gcd/mod.rs:107`](https://github.com/recmo/uint/blob/4c74c09b4d6f425cda931e9f5e8d00f1367c4261/src/algorithms/gcd/mod.rs#L107)*

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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