Trevor Spiteri
66d7fe8ba2
remove trait use in float_helper
2021-10-27 21:46:03 +02:00
Trevor Spiteri
41fd8bc46e
fix off by one when checking whether display can use narrower type
...
Now, if say 64 bits of a u128 are in use, the u64 function will be used rather
than the u128 function. Previously, u64 would only be used for up to 63 bits.
2021-10-21 15:20:21 +02:00
Trevor Spiteri
50e66afd79
cleaner FmtHelper
2021-10-21 15:11:30 +02:00
Trevor Spiteri
7f3acafca9
remove IntHelper trait
2021-10-21 14:41:28 +02:00
Trevor Spiteri
57bd28d149
Use IntFixed for ints (including {isize,usize}) <-> equivalent fixed
2021-10-21 14:40:38 +02:00
Trevor Spiteri
e2b171d2e9
pull some stuff out of IntHelper trait
2021-10-20 13:34:31 +02:00
Trevor Spiteri
6fb791505b
clippy
2021-10-20 11:54:46 +02:00
Trevor Spiteri
06388bfcee
simplify wide division
...
Remove whole wide_div module and only include code for U256/u128 and I256/i128,
without macros and traits.
2021-10-20 11:12:39 +02:00
Trevor Spiteri
defc730f43
simplify 128-bit fixed-point multiplication
...
Remove FallbackHelper trait and mul_div_fallback! macro from arith.
2021-10-18 19:22:33 +02:00
Trevor Spiteri
0628df848b
add inv_lerp to release notes
2021-10-15 20:52:04 +02:00
Trevor Spiteri
af03ce59dc
add inv_lerp to traits and wrappers
2021-10-15 20:49:50 +02:00
Trevor Spiteri
bda46c8c7e
checked versions of inv_lerp
2021-10-15 20:35:58 +02:00
Trevor Spiteri
6aa95994f2
style fixes
2021-10-15 20:33:32 +02:00
Trevor Spiteri
6842a73298
inv_lerp return type can have any fractional bits
2021-10-15 20:32:41 +02:00
Trevor Spiteri
f0fb0dfaf5
add some inv_lerp tests
2021-10-15 19:38:30 +02:00
Trevor Spiteri
81f271f733
implement inv_lerp
2021-10-15 17:16:24 +02:00
Trevor Spiteri
03677be143
refactor some 256-bit integer functions
2021-10-15 16:35:28 +02:00
Trevor Spiteri
eba32509c3
add some lerp tests
2021-10-12 22:00:24 +02:00
Trevor Spiteri
e8f6958e58
style nits
2021-10-12 21:25:26 +02:00
Trevor Spiteri
e94aa46eb8
add lerp and and its friends to release notes
2021-10-12 21:25:07 +02:00
Trevor Spiteri
2368fde4e0
add lerp to Fixed trait and {Wrapping,Unwrapped} wrappers
2021-10-12 21:24:40 +02:00
Trevor Spiteri
bcd20500f5
add lerp and its checked versions
2021-10-12 21:19:35 +02:00
Trevor Spiteri
6f7cf31698
clarify inline comments
2021-09-14 17:53:30 +02:00
Trevor Spiteri
6ee17ddc83
some renaming
2021-09-14 16:54:13 +02:00
Trevor Spiteri
82325665e4
reduce code duplication
2021-09-14 16:12:43 +02:00
Trevor Spiteri
c482eec9e1
warn(unsafe_op_in_unsafe_fn)
2021-09-13 10:31:24 +02:00
Trevor Spiteri
dd78404b19
use explicit trait method calls for primitives
...
This fixes warnings, and subsequently errors, because of new inherent methods
for the affected primitives.
2021-09-05 21:06:04 +02:00
Trevor Spiteri
6f0b2be3c5
depend on typenum 1.14, remove direct 'static constraint from LeEqU*
2021-09-03 17:47:08 +02:00
Trevor Spiteri
3e8681b41d
version 1.10.0
2021-08-23 21:01:09 +02:00
Trevor Spiteri
899e49c428
remove author line from Cargo.toml
2021-08-23 13:22:30 +02:00
Trevor Spiteri
f51d33ae4d
explicilty use Arbitrary trait methods for primitives
2021-08-23 13:21:20 +02:00
Trevor Spiteri
ce239cf466
fix NonZeroBits doc example
2021-08-19 18:34:29 +02:00
Trevor Spiteri
70cfdac097
implement {Rem,RemAssign}<NonZeroI> for all FixedI
2021-08-19 18:26:12 +02:00
Trevor Spiteri
bb71f39727
release notes style nit
2021-08-19 14:29:45 +02:00
Trevor Spiteri
498260c21b
use primitive ::BITS some
2021-08-19 14:12:27 +02:00
Trevor Spiteri
536285d6eb
depend on rustc 1.53.0
2021-08-19 13:59:09 +02:00
Trevor Spiteri
74c9879075
doc fix
2021-08-19 13:54:14 +02:00
Trevor Spiteri
e84d6e95f3
implement {Div,DivAssign,Rem,RemAssign}<NonZero> for all FixedU
2021-08-19 13:37:56 +02:00
Trevor Spiteri
32d50e506a
relax unnecessary constraints from {Mul,Div}<int> for Fixed
2021-08-19 13:07:27 +02:00
Trevor Spiteri
b29f3d15ce
reference issues 37 and 31 in release notes
2021-08-17 12:30:14 +02:00
Trevor Spiteri
ceb64dad41
add Arbitrary::size_hint implementation
2021-08-17 12:24:58 +02:00
Trevor Spiteri
832f1c7a46
use core library divisions and unsigned_abs
2021-08-17 11:12:46 +02:00
Trevor Spiteri
7177a60a92
depend on rustc 1.52.0
2021-08-17 11:08:35 +02:00
Trevor Spiteri
b69584f007
implement Arbitrary
2021-08-17 10:50:22 +02:00
Trevor Spiteri
68da0a4440
slightly clarify documentation about value ranges for Frac limits
2021-06-02 20:44:34 +02:00
Trevor Spiteri
0ff3872d76
version 1.9.0
2021-05-13 14:50:38 +02:00
Trevor Spiteri
80ddc556ce
doc: link to az in docs.rs instead of crates.io
2021-05-13 14:42:25 +02:00
Trevor Spiteri
f509ac448a
call out repr(transparent) in Fixed* doc
2021-05-13 14:33:18 +02:00
Trevor Spiteri
87a717d59e
do not cache debug hex stuff
...
AtomicU64 is not completely portable.
2021-05-12 18:10:47 +02:00
Trevor Spiteri
b61338f605
simplify debug_hex hack
2021-05-12 14:16:31 +02:00