Trevor Spiteri
89d5a9e8db
make unwrapped_rem{,_euclid} const fn, remove const_rem
2021-04-15 17:19:28 +02:00
Trevor Spiteri
e6ed2775e9
constify no_frac div and rem functions
2021-04-07 18:19:43 +02:00
Trevor Spiteri
b64cbc3da9
remove const_* methods that have an equivalent wrapping_*
2021-04-07 13:45:27 +02:00
Trevor Spiteri
856ea398a9
add const_* methods
2021-04-07 13:33:55 +02:00
Trevor Spiteri
deb5ddf099
add saturating_{div,rem}_euclid_int methods
2021-04-03 11:24:28 +02:00
Trevor Spiteri
3794dec03d
add ZERO, DELTA, ONE constants
2021-04-02 21:02:31 +02:00
Trevor Spiteri
92de6c24e6
apply must_use attribute to many methods
2021-04-02 12:09:04 +02:00
Trevor Spiteri
fda6dc1f70
add unwrapped_rem{,_euclid,_int} methods
2021-03-28 10:03:25 +02:00
Trevor Spiteri
2d146ccb75
version 1.7.0
2021-03-25 17:15:07 +01:00
Trevor Spiteri
05c5f398cf
replace midpoint with mean
...
midpoint makes more sense for integers, where it would be used for
example to find the midpoint in a binary search. With floating-point
and fixed-point numbers, it makes more sense to talk about mean.
2021-03-21 19:23:31 +01:00
Trevor Spiteri
94f5042bf1
nits
2021-03-20 22:49:17 +01:00
Trevor Spiteri
fa1cecc104
add highest_one method
2021-03-20 22:15:37 +01:00
Trevor Spiteri
6187d714ab
add IS_SIGNED associated constant
2021-03-20 15:41:50 +01:00
Trevor Spiteri
9b3475d59e
add 4 constants: SQRT_PI, FRAC_1_SQRT_PI, SQRT_E, SQRT_PHI
2021-03-20 11:18:04 +01:00
Trevor Spiteri
5dcae6396c
add 4 constants: SQRT_3, FRAC_1_SQRT_3, GAMMA, CATALAN
2021-03-18 13:01:39 +01:00
Trevor Spiteri
2b2e8d6256
nits
2021-03-17 19:11:18 +01:00
Trevor Spiteri
9330cf2e00
add midpoint
2021-03-17 17:40:10 +01:00
Trevor Spiteri
84edccb925
add significant_bits and signed_bits
2021-03-17 14:35:46 +01:00
Trevor Spiteri
4707482970
make Sum and Product supertraits of Fixed
2021-03-04 13:59:01 +01:00
Trevor Spiteri
f6918a36be
f16 feature no longer optional
2021-03-04 13:08:25 +01:00
Trevor Spiteri
bca7c18a7a
az feature no longer optional
2021-03-04 12:42:17 +01:00
Trevor Spiteri
59b5f02cfd
add F128Bits
2021-03-04 11:59:37 +01:00
Trevor Spiteri
3f2d9da57a
make {,checked_,wrapping_}next_power_of_two const functions
2021-02-25 18:39:51 +01:00
Trevor Spiteri
fa84a1825b
depend on rustc version 1.50.0
2021-02-25 18:24:19 +01:00
Trevor Spiteri
6300fcc486
add {from,to}_{be,le,ne}_bytes to {Wrapping,Unwrapped} wrappers
2021-02-24 16:27:52 +01:00
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