`modular`: Reduce larger bit-sizes to smaller ones.
- 主要語言
- Rust
- 星號
- 225
- 分支
- 70
- 平均合併
- 16 小時 54 分鐘
- 30 天內合併 PR
- 8
描述
*On 2022-06-03 @recmo wrote in [`2f6a5d6`](https://github.com/recmo/uint/commit/2f6a5d6b21bed46723e8815a63a1724187aa59b1) “Merge pull request #103 from recmo/mulmod”:*
Reduce larger bit-sizes to smaller ones.
```rust
/// ⚠️ Compute $\mod{\mathtt{self}}_{\mathtt{modulus}}$.
///
/// **Warning.** This function is not part of the stable API.
///
/// Returns zero if the modulus is zero.
// FEATURE: Reduce larger bit-sizes to smaller ones.
#[must_use]
pub fn reduce_mod(mut self, modulus: Self) -> Self {
if modulus == Self::ZERO {
return Self::ZERO;
}
```
*From [`src/modular.rs:14`](https://github.com/recmo/uint/blob/2f6a5d6b21bed46723e8815a63a1724187aa59b1/src/modular.rs#L14)*
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。