uint icon indicating copy to clipboard operation
uint copied to clipboard

Rust Uint crate using const-generics

Results 107 uint issues
Sort by recently updated
recently updated
newest added

## Motivation ## Solution ## PR Checklist - [ ] Added Tests - [ ] Added Documentation - [ ] Updated the changelog

*On 2023-04-19 @recmo wrote in [`fb19921`](https://github.com/recmo/uint/commit/fb199215e55d4d1f8f9fa2d618d051f86d5e0e83) “Merge pull request #231 from recmo/fix-ci-and-update-deps”:* Do we want to write `0` for `BITS == 0`. ```rust use std::str::FromStr; use thiserror::Error; // FEATURE: Respect...

tracker
to do

*On 2022-10-28 @recmo wrote in [`49f6271`](https://github.com/recmo/uint/commit/49f6271d9967c55a71f588ed267387b57a285d43) “Merge pull request #195 from recmo/pow2”:* We should use `rand` in tests, not `arbitrary`. ```rust // TODO: Instead of uniform random sampling, we should...

tracker
to do

*On 2022-10-28 @recmo wrote in [`49f6271`](https://github.com/recmo/uint/commit/49f6271d9967c55a71f588ed267387b57a285d43) “Merge pull request #195 from recmo/pow2”:* Instead of uniform random sampling, we should use a distribution that exercises different scales more. Something like sum(±2ⁱ...

tracker
to do

*On 2022-10-24 @recmo wrote in [`04d968b`](https://github.com/recmo/uint/commit/04d968bd73cab22a875cdade97e4712a5d81da8a) “Merge pull request #171 from shekhirin/parity-scale-codec”:* Use nightly generic const expressions to validate that BITS parameter is less than 536 ```rust Self::try_from_le_slice(&b).ok_or(Error::from("value is larger...

tracker
to do

*On 2022-10-24 @recmo wrote in [`fb3aa20`](https://github.com/recmo/uint/commit/fb3aa200dea389e2d1b0a23981da48a77a08b738) “Merge pull request #172 from recmo/div2”:* Can we re-use `r` here somehow? The problem is we can not just shift the `r` or `borrow`...

tracker
optimize

*On 2022-10-24 @recmo wrote in [`fb3aa20`](https://github.com/recmo/uint/commit/fb3aa200dea389e2d1b0a23981da48a77a08b738) “Merge pull request #172 from recmo/div2”:* Delegate to div_nxm_normalized if normalized. ```rust let n = divisor.len(); let m = numerator.len() - n; // Compute...

tracker
to do

*On 2022-10-24 @recmo wrote in [`fb3aa20`](https://github.com/recmo/uint/commit/fb3aa200dea389e2d1b0a23981da48a77a08b738) “Merge pull request #172 from recmo/div2”:* This is checking the carry flag ```rust let t = u128::from(v) * u128::from(d0); let t1 = (t >>...

tracker
optimize

*On 2022-10-24 @recmo wrote in [`fb3aa20`](https://github.com/recmo/uint/commit/fb3aa200dea389e2d1b0a23981da48a77a08b738) “Merge pull request #172 from recmo/div2”:* This is checking the carry flag ```rust let d1 = (d >> 64) as u64; let d0 =...

tracker
optimize

*On 2022-10-24 @recmo wrote in [`fb3aa20`](https://github.com/recmo/uint/commit/fb3aa200dea389e2d1b0a23981da48a77a08b738) “Merge pull request #172 from recmo/div2”:* This implementation is off by one. ```rust (q1, r) }; (q1, r) } /// TODO: This implementation is...

tracker
to do