Commit Graph

55 Commits

Author SHA1 Message Date
46d89619bd use from_bits function for consts 2024-08-29 20:03:56 -07:00
540749e4f1 there is a poorly named function for this 2024-08-29 19:52:00 -07:00
3c5f01da89 describe algorithm 2024-08-29 19:08:55 -07:00
70a79a8d25 remove old kludge 2024-08-29 18:55:05 -07:00
0483c9eb27 fast 2024-08-29 18:38:29 -07:00
61aad93f8d sqrt: closed loop over bit shift 2024-08-29 18:29:04 -07:00
cd1aa26293 prevent 50 headaches 2024-08-29 17:22:45 -07:00
b656371142 pass zero test 2024-08-29 17:03:25 -07:00
9266edbf92 forgot to test zero... 2024-08-29 16:20:10 -07:00
6335b1da47 todo 2024-08-29 15:35:33 -07:00
8d5fc1ae48 test max 2024-08-29 15:27:48 -07:00
67c30b8535 save one shr operation 2024-08-29 15:21:10 -07:00
95651d7091 use wide_mul for more precise sqrt 2024-08-29 14:50:22 -07:00
91b378aa43 use tabs 2024-08-29 14:28:40 -07:00
ac7d9f5c3b test more 2024-08-29 13:30:48 -07:00
b45d93a7dc more sqrt tests 2024-08-29 13:16:09 -07:00
6549305c9f use import 2024-08-29 13:16:02 -07:00
6ea9eff844 further sqrt improvements 2024-08-29 13:15:17 -07:00
e684fb421e tests 2024-08-29 12:13:45 -07:00
8ba76c7a00 smarter sqrt 2024-08-29 12:13:45 -07:00
3d3eb966a4 multiply and divide was straight up wrong, and bruh this needs const generics so bad 2024-08-29 11:16:38 -07:00
491de52f17 improve failure mode 2024-08-29 10:43:14 -07:00
69da2c52a4 use tabs 2024-08-29 10:43:14 -07:00
9f6dffafda cordic sqrt 2024-08-29 10:43:14 -07:00
a923a6b5d1 consistency 2024-08-28 12:23:33 -07:00
68d1c23cfa allow simple ops (why did this not work before?) 2024-08-28 12:23:33 -07:00
8aa7da6be7 add tests 2024-08-28 12:17:00 -07:00
0be0dd5c6f fixed: more constants 2024-08-28 11:47:40 -07:00
c43fab2f18 reexport typenum for convenience 2024-08-27 16:50:48 -07:00
20a317612e fixed: constants 2024-08-27 16:50:48 -07:00
79ab26f118 fixed: implement shift operators 2024-08-27 16:50:48 -07:00
7a5406e769 fixed: fixup operator impls - this is implicitly Self 2024-08-27 14:59:52 -07:00
4ce5c045a8 fixed: PartialOrd, Ord 2024-08-27 14:24:21 -07:00
d48b03889d rename wide_traits to fixed_wide_traits 2024-08-27 12:34:52 -07:00
a96cae9e80 re-export wide_traits::wide 2024-08-26 17:45:17 -07:00
fa2b9ca515 hide wide_traits behind a feature flag 2024-08-26 17:38:27 -07:00
ac5ef8f9be rename fixed_wide::wide to fixed_wide::fixed 2024-08-26 17:38:27 -07:00
dda8ebefc4 create wide_traits crate 2024-08-26 17:38:27 -07:00
f12ab4a3c3 whats missing 2024-08-26 17:34:13 -07:00
da5decb2f7 faster with less convenience 2024-08-26 17:34:13 -07:00
8206e16952 drop fixed dep 2024-08-26 17:34:13 -07:00
f32bd4a667 bad operator impl 2024-08-26 15:40:27 -07:00
5175a2ea18 wip 2024-08-26 14:58:19 -07:00
98349915ec todo 2024-08-23 17:55:14 -07:00
c6cc1da4be reorganize repo as monorepo of two crates 2024-08-23 17:23:21 -07:00
b836bc2a11 style 2024-08-23 17:23:21 -07:00
d38d103399 you can add 2024-08-23 17:23:21 -07:00
78bc7aa8a1 work 2024-08-23 17:23:21 -07:00
8b4608bda3 unused 2024-08-23 17:23:21 -07:00
3b7fbe4038 fixed crate does it like this 2024-08-23 17:23:21 -07:00