Trevor Spiteri
6841baee6e
doc nit
2021-03-18 11:47:16 +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
ded2181d74
Revert "temporarily wark around rustdoc beta test ICE"
...
This reverts commit a53735b8cc
.
2021-03-12 17:24:57 +01:00
Trevor Spiteri
a53735b8cc
temporarily wark around rustdoc beta test ICE
2021-03-04 14:10:26 +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
c6ffbe04d0
update doc examples for some mul_add checked variants
2021-02-25 20:05:51 +01:00
Trevor Spiteri
5bcd89878f
ci: check mul_add
2021-02-25 19:54:28 +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
c81c711368
fix 64-bit swap_bytes doc examples
2021-02-24 13:54:51 +01:00
Trevor Spiteri
c7fca0b4da
add new methods to traits and wrappers
2021-02-24 13:41:27 +01:00
Trevor Spiteri
1ef31ecdd9
remove repeated slices in 128-bit endianness examples
2021-02-24 13:32:01 +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
38a132ec88
clippy
2021-02-18 13:41:07 +01:00
Trevor Spiteri
3b12c3a8dc
bypass i128 probing in optional num-traits crate
...
In some scenarios, the num-traits autocfg probe does not detect i128
support, so enabling the i128 feature makes sure the crate is still
built with the required i128 feature. Since fixed already depends on
rustc later than 1.26 this should not cause num-traits issues.
2021-02-18 11:52:40 +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
637d41937d
doc tweak
2021-02-03 15:44:11 +01:00
Trevor Spiteri
2cf7028bac
depend on az 1.1
2021-02-03 11:17:52 +01:00
Trevor Spiteri
e4b932cd79
add own unwrapped methods for ToFixed and FromFixed implementations
2021-02-03 10:59:47 +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
a030d7c5d1
replace deprecated Criterion::bench with benchmark_group
2021-02-01 12:38:10 +01:00
Trevor Spiteri
b5c0c6adea
constify checked_abs
2021-02-01 12:10:40 +01:00
Trevor Spiteri
88165c4909
fix broken link in release notes
2021-02-01 12:10:08 +01:00
Trevor Spiteri
7ba4825e81
clippy
2021-02-01 11:57:31 +01:00
Trevor Spiteri
4d439c0b09
remove if_cond_else hack
2021-02-01 11:57:31 +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
306b2c4708
Merge branch '8-16-arch-support' into 'master'
...
Add support for 8- and 16-bit architectures
See merge request tspiteri/fixed!7
2020-11-29 13:18:08 +00:00
Sam Jones
b9feccf13b
Remove 8-bit isize/usize
2020-11-29 10:15:26 +00:00
Trevor Spiteri
deeda683bc
appease clippy
2020-11-28 15:12:26 +01:00
Sam Jones
c157db12cb
Add support for 8- and 16-bit architectures
2020-11-28 10:24:10 +00: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
e7baaf926a
simplify signature for widening_mul: use Sum instead of Add::Output
2020-10-31 00:59:12 +01:00
Trevor Spiteri
473766db14
add widening_mul
2020-10-31 00:29:58 +01:00