num-traits/src
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
..
bigint.rs Remove usage of deprecated apis 2015-03-04 09:45:19 -08:00
complex.rs Bump to 0.1.10 2015-01-23 08:54:55 -08:00
integer.rs Bump to 0.1.7. 2015-01-09 22:36:03 +11:00
iter.rs Remove usage of deprecated apis 2015-03-04 09:45:19 -08:00
lib.rs pow: avoid unnecessary overflows 2015-03-07 14:12:50 -08:00
rational.rs Remove usage of deprecated apis 2015-03-04 09:45:19 -08:00
traits.rs Upgrade to latest Rust 2015-02-20 10:37:11 -08:00