Delyan Angelov
|
4877417adf
|
math.big: make ./v -prod -cstrict -cc gcc-11 test vlib/math/ pass cleanly (workaround a problem in V's cgen, that -cstrict discovered)
|
2025-03-08 13:45:31 +02:00 |
|
Delyan Angelov
|
9b8a1607ed
|
math.big: add vlib/math/big/big_division_test.v (follow-up to 270941a )
|
2025-02-26 05:25:51 +02:00 |
|
Delyan Angelov
|
270941a6bd
|
math.big: bump newton_division_limit to 1_000_000 (workaround issue #23806)
|
2025-02-26 04:54:01 +02:00 |
|
Delyan Angelov
|
6d017f3a31
|
math.big: fix 1/115792089237316195423570985008687907853269984665640564039457584007908834671663 leading to panic (fix #23771)
|
2025-02-20 18:19:55 +02:00 |
|
Emma
|
6b92f8fada
|
all: remove ancient deprecations (#23479)
|
2025-01-16 16:36:12 +02:00 |
|
Delyan Angelov
|
ef7fdd0f84
|
math.big: fix assert big.integer_from_int(1) == big.integer_from_bytes([u8(0), 0, 0, 0, 1]) (fix #23115) (#23124)
|
2024-12-10 18:18:30 +02:00 |
|
Delyan Angelov
|
81129d197b
|
math.big: use @[manualfree] to workaround -autofree compilation issues with gitly, and other projects using crypto.rand and math.big
|
2024-11-21 22:06:49 +02:00 |
|
kbkpbot
|
0224581bc6
|
math.big: improve the performance of left_shift_digits_in_place and right_shift_digits_in_place (#22450)
|
2024-10-08 21:48:26 +03:00 |
|
Delyan Angelov
|
6ba87b948a
|
math.big: fix a + b and a - b , when the signs are different, add more test cases (#22330)
|
2024-09-27 17:13:39 +03:00 |
|
yuyi
|
008aaad999
|
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185)
|
2024-09-10 11:25:56 +03:00 |
|
yuyi
|
c51d30bf53
|
fmt: fix alignment of struct init fields (#22025)
|
2024-08-11 09:11:24 +03:00 |
|
Ikko Eltociear Ashimine
|
328e53bff3
|
math.big: fix typo tranform -> transform in special_array_ops.v (#21475)
|
2024-05-08 18:10:21 +03:00 |
|
Turiiya
|
1a35a783f1
|
breaking,checker: disallow initializing private struct fields outside structs module (#21183)
|
2024-04-12 13:53:02 +03:00 |
|
Delyan Angelov
|
4dcc9265e1
|
examples: add pidigits.v; optimise math.big's Integer divide a bit (#21239)
|
2024-04-09 17:01:05 +03:00 |
|
Turiiya
|
9704a01406
|
parser: fix case of falsely registering imports as used, remove unused imports (#21156)
|
2024-04-01 19:46:50 +03:00 |
|
Pierre Curto
|
900ec70711
|
checker: add cast overflow checks (#20641)
|
2024-01-24 18:36:39 +02:00 |
|
Delyan Angelov
|
856984aa14
|
cleanup: turn .microseconds() ... us to .microseconds() ... µs (#20588)
|
2024-01-20 07:16:24 +02:00 |
|
Alexander Medvednikov
|
f09826e928
|
all: unwrap const() blocks
|
2023-11-25 10:02:51 +03:00 |
|
Joe C
|
757929392e
|
all: update attributes to use new syntax
|
2023-11-15 16:16:01 +11:00 |
|
Artem Yurchenko
|
97f7c3f609
|
builtin: move min/max integer values consts from math to builtin (#19809)
|
2023-11-08 20:43:48 +02:00 |
|
shove
|
69d62e458b
|
math.big: fix incorrect division with negative numbers (fix #19585) (#19587)
|
2023-10-18 00:37:37 +03:00 |
|
yuyi
|
55ca8d8d8e
|
fmt: align the custom values of the enum fields (#19331)
|
2023-09-12 14:44:38 +03:00 |
|
Delyan Angelov
|
c9e46d34aa
|
math.big: fix notice for compilation with latest v
|
2023-08-23 08:10:55 +03:00 |
|
Delyan Angelov
|
679cbf1490
|
math.big: restore gdc_euclid, use it for smaller numbers, fix bench_euclid.v .
|
2023-08-14 18:37:48 +03:00 |
|
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
|
6fef2c2ae8
|
math.big: add test cases for is_power_of_2 (#18910)
|
2023-07-20 02:34:31 +03:00 |
|
phoebe
|
a49b8f28b1
|
math.big: rework function naming and documentation (#18890)
|
2023-07-20 02:33:07 +03:00 |
|
phoebe
|
735654296c
|
math.big: refactor big_test.v for scalability (#18696)
|
2023-06-28 13:35:13 +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 |
|
phoebe
|
37386697a3
|
math.big: fix internal subtract_align_last_byte_in_place overflow (#18413)
|
2023-06-12 13:33:53 +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 |
|
Felipe Pena
|
6a179a2926
|
checker: add int signedness mismatch checking for function call arguments (#16750)
|
2022-12-24 06:28:35 +02: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 |
|
yuyi
|
c662431cfd
|
checker: check unsafe array assign (fix #9651) (#15515)
|
2022-08-25 08:52:13 +03:00 |
|
Subhomoy Haldar
|
297cb5f89c
|
math.big: improve multiplication performance (#15200)
|
2022-07-24 19:35:37 +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 |
|
Delyan Angelov
|
716cb17aea
|
math.big: wrap all asserts in module code (not in tests) in $if debug {} (#14012)
|
2022-04-12 09:38:53 +03:00 |
|