Commit Graph

173 Commits

Author SHA1 Message Date
Trevor Spiteri ba39237336 add {from,to}_{be,le}, swap_bytes to {Wrapping,Unwrapped} wrappers 2021-02-24 16:07:51 +01:00
Trevor Spiteri e49d4762bb clippy 2021-02-24 14:05:08 +01:00
Trevor Spiteri c7fca0b4da add new methods to traits and wrappers 2021-02-24 13:41:27 +01:00
Trevor Spiteri 25655ae215 add methods: {from,to}_{be,le}, swap_bytes, reverse_bits 2021-02-24 13:31:40 +01:00
Trevor Spiteri d08b8eb8cb implement num_traits::ops::overflowing::Overflowing{Add,Mul,Sub} 2021-02-18 13:46:38 +01:00
Trevor Spiteri 8ff5733aeb version 1.6.0 2021-02-05 17:36:04 +01:00
Trevor Spiteri 4bda23e049 update copyright year 2021-02-05 15:22:27 +01:00
Trevor Spiteri 8293c19256 add unsigned_abs method 2021-02-04 15:18:01 +01:00
Trevor Spiteri 2cf7028bac depend on az 1.1 2021-02-03 11:17:52 +01:00
Trevor Spiteri 0c764ca53d add unwrapped_{to,from}_fixed to {To,From}Fixed traits
They have a default implementation for backwards compatibility.
2021-02-03 10:38:44 +01:00
Trevor Spiteri 88165c4909 fix broken link in release notes 2021-02-01 12:10:08 +01:00
Trevor Spiteri c3a92b5c72 constify some checked methods 2021-02-01 11:57:31 +01:00
Trevor Spiteri c4a63ae243 depend on rustc version 1.47.0 2021-02-01 11:57:31 +01:00
Trevor Spiteri 5c79da53d4 version 1.5.0 2020-11-05 10:48:58 +01:00
Trevor Spiteri baf9b5b2e4 issue 26
carry_col3 inside <i128 as MulDivOverflow>::mul_overflow could be -1,
which would be 128 bits wide, so carry_col3.shift_lo_up() would panic
when debug_assertions are enabled. Taking its low part solves the
issue.
2020-11-04 01:05:14 +01:00
Trevor Spiteri b510e4cb21 stabilize unwrapped feature 2020-10-31 15:51:35 +01:00
Trevor Spiteri 389a634064 upgrade serde-str from experimental to optional feature 2020-10-31 15:43:27 +01:00
Trevor Spiteri 66bcf28631 assimilate version 1.4.1 into 1.5.0 2020-10-31 15:17:12 +01:00
Trevor Spiteri f6737314d5 rename widening_mul to wide_mul 2020-10-31 15:12:58 +01:00
Trevor Spiteri 473766db14 add widening_mul 2020-10-31 00:29:58 +01:00
Trevor Spiteri fd066b1c97 add missing num-traits supertraits to FixedOptionalFeatures 2020-10-23 13:00:36 +02:00
Trevor Spiteri 53ea435929 version 1.4.0 2020-10-22 11:45:51 +02:00
Trevor Spiteri 6ec8433128 add wrapping/traits to reciprocal methods 2020-10-20 21:23:14 +02:00
Trevor Spiteri bcdd6d5d41 implement more num-traits traits 2020-10-20 16:02:43 +02:00
Trevor Spiteri 8313677cb8 make serde-str more convenient 2020-10-20 12:10:49 +02:00
Trevor Spiteri a0a0a2a770 version 1.3.0 2020-10-15 18:48:04 +02:00
Trevor Spiteri 197650872d add serde-str experimental feature 2020-10-09 14:41:10 +02:00
Trevor Spiteri a0ea3f2c60 loosen Rhs constraint on MulAssign 2020-09-22 19:09:41 +02:00
Trevor Spiteri 0aa8af089f add mul_add to Wrapping and Unwrapped 2020-09-22 17:20:13 +02:00
Trevor Spiteri a3d947776d add mul_add methods 2020-09-22 15:47:13 +02:00
Trevor Spiteri 7a03bd6364 add unwrapped experimental feature 2020-09-17 16:58:26 +02:00
Trevor Spiteri 1b5a5b39ae version 1.2.0 2020-09-02 13:50:04 +02:00
Trevor Spiteri d112d55e21 Revert "require rustc 1.46"
This reverts commit 5a4d1a6732.
2020-09-02 13:03:23 +02:00
Trevor Spiteri 5a4d1a6732 require rustc 1.46 2020-09-02 10:14:04 +02:00
Trevor Spiteri f95c76651a add const_fixed_from_int! macro 2020-08-28 18:27:23 +02:00
Trevor Spiteri 5b911fc62c version 1.1.0 2020-07-21 08:42:56 +02:00
Trevor Spiteri 2351e9a4c8 document num-traits experimental feature in release notes 2020-07-16 12:37:46 +02:00
Trevor Spiteri fcdd018240 version 1.0.0 2020-06-04 18:59:55 +02:00
Trevor Spiteri ef36b4f767 make {from,to}_{be,le,ne}_bytes const functions 2020-06-04 18:18:01 +02:00
Trevor Spiteri cd8ee00eac Merge branch 'v0.5' 2020-05-11 20:20:02 +02:00
Trevor Spiteri 2bfc804c4d version 0.5.7 2020-05-11 20:13:11 +02:00
Trevor Spiteri 1eca782f60 add wrapping_next_power_of_two 2020-05-11 19:57:42 +02:00
Trevor Spiteri 8227ae5dd7 add leading_ones and trailing_ones 2020-05-11 19:55:35 +02:00
Trevor Spiteri 694ae24d77 add LosslessTry{From,Into} and immplement them for Fixed <-> Fixed 2020-05-11 19:52:59 +02:00
Trevor Spiteri 5cb690a076 fix typos in tests and release notes 2020-05-11 19:49:12 +02:00
Trevor Spiteri b22a08b66f add golden ratio and its conjugate to constants 2020-05-11 19:42:47 +02:00
Trevor Spiteri c13ab2e324 add wrapping_next_power_of_two 2020-05-10 01:13:24 +02:00
Trevor Spiteri dfb59cefc0 add leading_ones and trailing_ones 2020-05-10 01:09:41 +02:00
Trevor Spiteri bc5e01120f add LosslessTry{From,Into} and immplement them for Fixed <-> Fixed 2020-05-08 12:41:35 +02:00
Trevor Spiteri eebb76e7b0 fix typos in tests and release notes 2020-05-08 00:37:14 +02:00