326 Commits

Author SHA1 Message Date
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
Alexander Medvednikov
03e0b9e646 math: document q_rsqrt 2024-09-24 04:33:46 +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
Alexander Medvednikov
0090170b26 all: implements keyword for optional explicit interface implementations 2024-09-04 01:24:06 +03:00
Swastik Baranwal
4b799fd81d
checker: disallow using a preexisting const name in a for loop, as either a key or value ident (#22108) 2024-08-24 02:16:28 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
Delyan Angelov
d9a3a3aa0a
strconv,math.bits: eliminate bounds checking in commonly used routines 2024-07-22 13:43:50 +03:00
Delyan Angelov
b6c7b46dcf
math: avoid unused calculations for math.modulo_floored/2 and math.modulo_euclid/2 2024-06-29 11:33:46 +03:00
Delyan Angelov
3799d7f635
math: add divide_truncated/2, divide_euclid/2, divide_floored/2 and modulo_truncated/2, modulo_euclid/2, modulo_floored/2 (#21759) 2024-06-29 11:24:49 +03:00
Kim Shrier
5fbf676803
math.unsigned: fix some Uint256 bugs and add tests (#21528) 2024-05-19 16:51:01 +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
Kim Shrier
f71b801707
math.unsigned: permit _ separators in Uint128 decimal strings passed to uint128_from_dec_str (#21461) 2024-05-08 13:05:49 +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
Ikko Eltociear Ashimine
0fd67b225c
math: fix occuring -> occurring typo in stats.v (#21227) 2024-04-08 18:39:01 +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
cui fliter
78602846e5
all: fix typos in comments (#20963) 2024-03-04 18:41:55 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02: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
shove
072d65b28a
checker: fix @[deprecated] attribute for consts (fix #20523) (#20550) 2024-01-16 08:00:47 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Sudoer
34858c3265
ast, math.complex: add missing docstrings for the methods in types.v (#20281) 2023-12-27 21:18:46 +02:00
Swastik Baranwal
6a04febbf8
math.bits: remove deprecated max32 and max64 const (#20277) 2023-12-27 13:55:55 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Kim Shrier
cc220e60a5
vlib: change byte to u8 (#19930) 2023-11-19 04:23:32 +03:00
Kim Shrier
439aeeffa0
math.fractions: fix deprecation warnings in tests (#19906) 2023-11-17 10:46:41 +02: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
Delyan Angelov
9982fa4241
ci: v fmt -w vlib/math/stats/stats.v 2023-10-23 03:30:53 +03:00
Sudoer
65dd69c5d9
math: add missing docstrings for vlib/math functions (#19617) 2023-10-22 22:31:12 +03:00
Delyan Angelov
34cf5221e1
ci: workaround vlib/gg/draw_fns_api_test.v failure with tcc on windows 2023-10-22 18:32:13 +03:00
Sudoer
7e2d737a55
math.unsigned: add missing docstrings for the functions and methods in unint256.v (#19604) 2023-10-20 07:55:14 +03:00
Sudoer
20a1af3abc
math.unsigned: add missing docstrings for the functions in unint128.v (#19597) 2023-10-19 18:09:09 +03:00
shove
69d62e458b
math.big: fix incorrect division with negative numbers (fix #19585) (#19587) 2023-10-18 00:37:37 +03:00
Swastik Baranwal
491b5f7614
math.fractions: use operator overloading and deprecate old functions (#19547) 2023-10-11 03:16:11 +03:00
Sudoer
efef5bcc89
math: add missing docstrings for math.log_gamma_sign and for the complex.complex constructor function (#19523) 2023-10-08 12:20:48 +03:00
Alexander Medvednikov
e265e99a64 all: int => i64 (part 5) 2023-10-08 01:32:37 +03:00
Sudoer
5c37c312b0
builtin,math: add more missing doc strings for public functions (#19509) 2023-10-05 00:35:37 +03:00
Redstoyn33
4b03d08457
math.fractions: make the Fraction struct public (#19507) 2023-10-04 18:16:08 +03:00
Sudoer
db0808c6c9
math: fix documentation for math.radians, math.degrees and math.aprox_cos (#19504) 2023-10-04 12:19:00 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields (#19331) 2023-09-12 14:44:38 +03:00
Leo Developer
43ccba3713
math: fix pure v math.pow (#19287) 2023-09-06 21:41:15 +03:00
Delyan Angelov
3e93a13ed8
math: fix failing test on FreeBSD with gcc 12.2.0 (and -ffast-math) (#19278) 2023-09-06 07:30:46 +03:00
Delyan Angelov
dee8fb99c5 math: log more diagnostic information for the failing test_pow test in math_test.v 2023-09-05 12:38:28 +03:00
Kim Shrier
c126450201
math: fix expected results for -5 raised to the -2 power, add a few more cases (#19274) 2023-09-05 08:13:29 +03:00
Delyan Angelov
fb0f12f937
math: add more C. fn overrides, for the default C backend (speed up examples/path_tracing.v) (#19271) 2023-09-04 21:09:01 +03:00
Leo Developer
a3fa575cf6
math: speedup the pure V math.pow implementation for non-fractional powers (#19270) 2023-09-04 18:37:29 +03:00