Docs.rs
sp-arithmetic-26.0.0
sp-arithmetic 26.0.0
Docs.rs crate page
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
github:paritytech:core-devs
parity-crate-owner
Dependencies
parity-scale-codec ^3.6.1
normal
docify ^0.2.8
normal
integer-sqrt ^0.1.2
normal
num-traits ^0.2.17
normal
scale-info ^2.11.1
normal
serde ^1.0.197
normal
optional
sp-std ^14.0.0
normal
static_assertions ^1.1.0
normal
criterion ^0.4.0
dev
primitive-types ^0.12.0
dev
rand ^0.8.5
dev
Versions
94.85%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
sp_
arithmetic
26.0.0
In sp_
arithmetic::
helpers_
128bit
sp_arithmetic
::
helpers_128bit
Function
gcd
Copy item path
Source
pub fn gcd(a:
u128
, b:
u128
) ->
u128
Expand description
Helper gcd function used in Rational128 implementation.