Commit Graph

672 Commits

Author SHA1 Message Date
Trevor Spiteri 92de6c24e6 apply must_use attribute to many methods 2021-04-02 12:09:04 +02:00
Trevor Spiteri e66f6e05a5 use intra-doc links for tuples 2021-03-30 14:39:31 +02:00
Trevor Spiteri 305a9708ca use intra-doc links 2021-03-30 14:26:52 +02:00
Trevor Spiteri 18b90462ce some more track_caller 2021-03-28 10:10:39 +02:00
Trevor Spiteri fda6dc1f70 add unwrapped_rem{,_euclid,_int} methods 2021-03-28 10:03:25 +02:00
Trevor Spiteri 1738c0703d prepare no_frac div/rem functions for const fn 2021-03-28 09:25:40 +02:00
Trevor Spiteri d8d252b989 doc: update docs since now f16 conversions are always provided 2021-03-26 20:05:11 +01:00
Trevor Spiteri 2d146ccb75 version 1.7.0 2021-03-25 17:15:07 +01:00
Trevor Spiteri d73ee646d6 fix awk regex 2021-03-24 10:40:00 +01:00
Trevor Spiteri 8756c0929a use awk with no gnu extensions in doc index generation 2021-03-24 10:05:44 +01:00
Trevor Spiteri 5fce801579 use gawk not awk in doc index generation 2021-03-24 09:49:08 +01:00
Trevor Spiteri c0e621438d do not use awk -i in doc index generation 2021-03-24 09:44:19 +01:00
Trevor Spiteri 5154c05b7b update dev documentation index page 2021-03-23 17:50:54 +01:00
Trevor Spiteri 68970be469 annotate unwrapped methods (and fns they call) with track_caller 2021-03-23 14:56:47 +01:00
Trevor Spiteri 387bc69eb2 move some files to new etc directory 2021-03-23 11:05:35 +01:00
Trevor Spiteri 2574fcdf73 simplify IntHelper 2021-03-23 10:41: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 3cd0053e62 doc tweaks 2021-03-20 22:49:07 +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 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