Commit graph

317 commits

Author SHA1 Message Date
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
yuyi
18e60e77de
fmt: remove inline comments (#19263) 2023-09-03 23:51:56 +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
blackshirt
ef5c3cdb73
math.unsigned: change uint256_from_dec_str to return a result, instead of an option (#19041) 2023-08-03 10:18:21 +03:00
Delyan Angelov
41f99c1abf
tools: add cmd/tools/show_ancient_deprecations.v, to cleanup ancient functionality, deprecated over an year ago (#18946) 2023-07-22 19:13:58 +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