alloy-rs / alloy-rs/ruint

`algorithms/gcd/matrix`: Improve

Ouverte
#139 0 commentaires 0 réactions 1 personne assignée Réclamée par @recmo Voir sur GitHub
refactor tracker
Langage dominant
Rust
Étoiles
225
Forks
70
Merge moyen
16 h 54 min
PR mergées (30 j)
8

Description

*On 2022-06-11 @recmo wrote in [`e80cbc5`](https://github.com/recmo/uint/commit/e80cbc559c54ff9cba55e24129faf23e89933ee8) “Merge pull request #136 from recmo/small-devex”:*

Improve

```rust
///
/// Panics if `a0` does not have the highest bit set.
/// Panics if `a0 < a1`.
#[must_use]
#[allow(clippy::redundant_else)]
#[allow(clippy::cognitive_complexity)] // REFACTOR: Improve
pub fn from_u64_prefix(a0: u64, mut a1: u64) -> Self {
const LIMIT: u64 = 1_u64 << 32;
debug_assert!(a0 >= 1_u64 << 63);
debug_assert!(a0 >= a1);

```
*From [`src/algorithms/gcd/matrix.rs:167`](https://github.com/recmo/uint/blob/e80cbc559c54ff9cba55e24129faf23e89933ee8/src/algorithms/gcd/matrix.rs#L167)*

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.