alloy-rs / alloy-rs/ruint

`modular`: dani): check if this is worth special casing over just using

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

描述

*On 2025-08-04 @prestwich wrote in [`25e81ad`](https://github.com/recmo/uint/commit/25e81ad8c6732624ce92e7d12800715e78df726c) “Merge pull request #506 from DaniPopes/release-1.16.0”:*

dani): check if this is worth special casing over just using
div_rem_double_bits

```rust
}
}

#[inline(never)]
fn div_rem_bits_plus_one(numerator: *mut u64, modulus: &mut Self) {
// TODO(dani): check if this is worth special casing over just using
// div_rem_double_bits
let numerator = unsafe { core::slice::from_raw_parts_mut(numerator, LIMBS + 1) };
algorithms::div::div_inlined(numerator, &mut modulus.limbs);
}

/// Compute $\mod{\mathtt{self} ⋅ \mathtt{rhs}}_{\mathtt{modulus}}$.

```
*From [`src/modular.rs:75`](https://github.com/recmo/uint/blob/25e81ad8c6732624ce92e7d12800715e78df726c/src/modular.rs#L75)*

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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