aboutsummaryrefslogtreecommitdiff
path: root/core/math/big
Commit message (Collapse)AuthorAgeFilesLines
* Remove `core:mem` import from `core:math/big`.Jeroen van Rijn3 days3-17/+15
|
* Remove `core:mem` import from `core:math/big`.Jeroen van Rijn3 days1-9/+14
|
* core:os -> core:os/old && core:os/os2 -> core:osJeroen van Rijn6 days1-1/+1
|
* Remove all `core:os` imports from JS targetsJeroen van Rijn6 days2-57/+79
| | | | Fix `local_tz_name` on FreeBSD.
* core:os -> core:os/os for core:math/bigJeroen van Rijn7 days1-8/+7
|
* Always use new itoa method when MATH_BIG_FORCE_32_BITJeroen van Rijn2025-11-281-1/+1
|
* Another little bit faster.Jeroen van Rijn2025-11-271-4/+23
|
* Switch between old and new itoa method based on optimization level + digit sizeJeroen van Rijn2025-11-271-5/+14
|
* Speed up big.itoaJeroen van Rijn2025-11-272-6/+84
| | | | | Extract 18 (64-bit) or 8 (32-bit) digits per big division. This gives a 2.5x speedup for a 1024-bit bigint.
* Use `@(rodata)` where possiblegingerBill2025-11-274-6/+14
|
* Add alias `Okay = None`gingerBill2025-11-271-0/+2
|
* Use `< 0` instead of `== -1` for comparisonsgingerBill2025-11-275-14/+14
|
* Handle `Allocator_Error` correctly in `core:math/big`gingerBill2025-11-273-5/+19
|
* Fix #5931Jeroen van Rijn2025-11-182-19/+10
| | | | Fix #5931 and add test case for it.
* Change Odin's LICENSE to zlib from BSD 3-clausegingerBill2025-10-2810-10/+10
| | | | This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
* Further overhaul of package line comments.Jeroen van Rijn2025-10-092-7/+1
|
* Package lines for `core:math` and more.Jeroen van Rijn2025-10-0911-31/+25
|
* Change the way math/big constants are initializedJeroen van Rijn2025-09-102-20/+12
|
* Remove unused importgingerBill2025-08-081-1/+0
|
* Require `@(init)` and `@(fini)` to be `proc "contextless" ()`gingerBill2025-08-082-12/+15
|
* Fix memory leak in `internal_rat_norm`blob18072025-06-231-0/+2
|
* Turn `core:math/bìg` tests into regular `core:testing` tests.Jeroen van Rijn2025-06-112-3/+3
| | | | | | `core:math/big` has been verified against Python's big integer implementation long enough. Turn it into a regular regression test using the `core:testing` framework, testing against a generated corpus of test vectors.
* Add initial tests for big rationalsJeroen van Rijn2025-06-101-3/+2
|
* Move negation in `internal_rat_to_float` to end of procedureFeoramund2025-06-101-3/+3
| | | | | | | This should cause a compiler error, due to the assignment to a named return value in a deferred block. Fixes #4565
* Deprecate old @(deprecated) things.Jeroen van Rijn2025-06-061-1/+1
|
* Fix a range check in int_atoi in core:math/big.Barinzaya2025-05-241-1/+1
| | | | | | | The check seems to have been assuming that rune comparisons are unsigned, but they're signed. This was causing an assertion failure for certain input characters (anything with an ASCII value less than '+'/43).
* Moved all packages in core, base, vendor, tests and examples to use new #+ ↵Karl Zylinski2024-09-141-1/+1
| | | | file tag syntax.
* Fix `-vet-tabs` issuesgingerBill2024-08-241-1/+1
|
* Imply `#no_capture` to all variadic parametersgingerBill2024-07-142-9/+9
|
* Add more uses of `#no_capture`gingerBill2024-07-142-9/+9
|
* Fix bug in div3 fast path.Jeroen van Rijn2024-06-291-1/+1
|
* Fix loads of indentation issues with mixing spaces and tabsgingerBill2024-06-291-23/+23
|
* Remove the need for `rand` in `core:math/big`gingerBill2024-06-153-15/+13
|
* Elide unnecessary conditionJeroen van Rijn2024-06-141-1/+1
|
* Fix big.shrink not actually shrinkingJosh Jones2024-06-141-2/+7
|
* Merge pull request #3718 from Feoramund/add-missing-big-atoi-aliasJeroen van Rijn2024-06-101-0/+1
|\ | | | | Add missing `string_to_int` alias in `core:math/big`
| * Add missing `string_to_int` alias in `core:math/big`Feoramund2024-06-091-0/+1
| |
* | Add permutation & combination procedures to `core:math/big`Feoramund2024-06-091-0/+60
|/
* Remove unused code in `internal_random_prime`Feoramund2024-05-281-3/+0
|
* fix a couple of -vet-style failures after ↵Laytan2024-05-093-5/+5
| | | | f54977336b27c32eab52b77d94e7b1610f4350cf
* Fix `big.internal_random_prime` with `Second_MSB_On`Feoramund2024-04-151-0/+14
|
* Add `#no_broadcast` procedure parameter to disallow automatic array ↵gingerBill2024-03-211-1/+1
| | | | programming broadcasting on procedure arguments
* Expose internal invmod and int_exponent_mod with more consistent namingEd Yu2024-03-122-2/+6
|
* Fix typo in big.internal_invmodJeroen van Rijn2024-03-082-3416/+3359
| | | | Fixes #3253
* For invmod, b has to be > 1, fix a logic typoEd Yu2024-03-041-3/+3
|
* math.big constants were no longer initializeddev-2024-03Jeroen van Rijn2024-03-031-1/+6
| | | | Fixes #3243
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-288-10/+10
|
* Fix missing clamp in core:math/big random.Jeroen van Rijn2023-11-271-1/+1
|
* Partial pseudo-revertgingerBill2023-10-021-4/+8
|
* Minor cleanups to the core librarygingerBill2023-09-302-2/+2
|