phoebe
|
dcbc9e0b9b
|
math.big: add isqrt_checked and standardize error format (#18939)
|
2023-07-22 09:20:45 +03:00 |
|
phoebe
|
7b306e9b8f
|
math.big: add checked division methods (#18924)
|
2023-07-21 20:06:54 +03:00 |
|
phoebe
|
93b3f1ca55
|
math.big: make is_odd public and add test cases (#18916)
|
2023-07-20 13:52:50 +03:00 |
|
phoebe
|
ef1f5d7725
|
math.big: allow bitwise ops on negative signum (#18912)
|
2023-07-20 13:52:28 +03:00 |
|
phoebe
|
f9906f3a9e
|
math.big: fix inner deprecated binary_str use (#18911)
|
2023-07-20 13:51:58 +03:00 |
|
phoebe
|
4daddd3e84
|
math.big: improve is_power_of_2 (#18914)
|
2023-07-20 13:51:26 +03:00 |
|
phoebe
|
a49b8f28b1
|
math.big: rework function naming and documentation (#18890)
|
2023-07-20 02:33:07 +03:00 |
|
phoebe
|
1bae9e4538
|
math.big: minor gcd improvements/fixups and internal rsh_to_set_bit (#18569)
|
2023-06-27 20:09:22 +03:00 |
|
phoebe
|
4485f1ca1e
|
math.big: fix documentation for mod_inverse (#18494)
|
2023-06-20 14:31:04 +03:00 |
|
phoebe
|
a3f24caffc
|
math.big: add mod_inverse and improve big_mod_pow to allow for large exponents and moduli (#18461)
|
2023-06-19 17:59:49 +03:00 |
|
Subhomoy Haldar
|
8759409a69
|
math.big: fix min i32 value bug (#17775)
* attempt big int min value fix
* cast value for correct comparison
* update edge case
* add one more test
|
2023-03-26 08:45:42 +03:00 |
|
Delyan Angelov
|
952f4644c5
|
math.big: remove import math dependency (math.big only uses min/max/abs)
|
2022-11-29 14:42:46 +02:00 |
|
yuyi
|
017ace6ea7
|
vfmt: change all '$expr' to '${expr}' (#16428)
|
2022-11-15 16:53:13 +03:00 |
|
yuyi
|
51f4d99399
|
all: change optional to result in most of the libraries (#16123)
|
2022-10-20 22:14:33 +03:00 |
|
Delyan Angelov
|
ed17779434
|
math.big: fix Integer.bit_len() when there are no digits in the number
|
2022-05-18 08:29:08 +03:00 |
|
Delyan Angelov
|
ed12a5c84c
|
math.big: reduce memory usage of Integer.str() (free intermediary Integers), optimise some operations using [direct_array_access] (#14353)
|
2022-05-13 08:21:34 +03:00 |
|
Daniel Däschle
|
d679146a80
|
fmt: remove space in front of ? and ! (#14366)
|
2022-05-13 06:56:21 +03:00 |
|
Alexander Medvednikov
|
fb192d949b
|
all: replace []byte with []u8
|
2022-04-15 15:35:35 +03:00 |
|
Alexander Medvednikov
|
d4a0d6f73c
|
all: byte => u8
|
2022-04-15 14:58:56 +03:00 |
|
Subhomoy Haldar
|
7ef7188f4b
|
math.big: add bit_len, optimize gcd, add documentation (#13872)
|
2022-03-30 15:52:09 +03:00 |
|
Subhomoy Haldar
|
072480352c
|
math.big: add get_bit, set_bit, big_mod_pow (#13507)
|
2022-02-18 11:53:39 +03:00 |
|
Delyan Angelov
|
59357e873d
|
math: move the math.mathutil generic min /max /abs fns to math (#13042)
|
2022-01-05 18:02:20 +02:00 |
|
Andreas Schoeller
|
f14dabc6bd
|
math.big: add a new greatest-common-divisor-algo for big.Integer, also add a benchmark for it (#12261)
|
2021-10-26 11:10:13 +03:00 |
|
Daniel Däschle
|
b63ec8fbcf
|
checker: require params attribute to use struct as keyword arguments in function (#11135)
|
2021-09-14 00:05:30 +03:00 |
|
Subhomoy Haldar
|
96d4a0777f
|
math.big: fix comparison and add tests (#11449)
|
2021-09-08 20:30:20 +03:00 |
|
Subhomoy Haldar
|
dadfda9400
|
math.big: implement big.integer in V (#11352)
|
2021-08-31 19:21:00 +03:00 |
|