Go to file
Josh Stone 043a5b2918 pow: avoid unnecessary overflows
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.
2015-03-07 14:12:50 -08:00
benches Merge pull request #47 from jbcrail/fix-deprecated-range 2015-01-12 11:02:46 -06:00
src pow: avoid unnecessary overflows 2015-03-07 14:12:50 -08:00
.gitignore Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
.travis.yml Update travis config 2015-01-01 22:09:50 -08:00
Cargo.toml Bump to 0.1.15 2015-03-04 09:45:28 -08:00
LICENSE-APACHE Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
LICENSE-MIT Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
README.md Update documentation links 2014-12-23 09:54:56 -08:00

README.md

num

Arbitrary sized numeric types for Rust.

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
num = "*"

and this to your crate root:

extern crate num;