043a5b2918
The code was performing an extra squaring of the base, which might trigger an arithmetic overflow that doesn't matter to the result. Now this squaring is only attempted when enough exp remains to need it. A new doctest tries pow(6u8, 3), where an extra square would exceed 256. |
||
---|---|---|
benches | ||
src | ||
.gitignore | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
README.md
num
Arbitrary sized numeric types for Rust.
Usage
Add this to your Cargo.toml
:
[dependencies]
num = "*"
and this to your crate root:
extern crate num;