aboutsummaryrefslogtreecommitdiff
path: root/core/math/big/radix.odin
Commit message (Collapse)AuthorAgeFilesLines
* Remove `core:mem` import from `core:math/big`.Jeroen van Rijn3 days1-7/+6
|
* Remove all `core:os` imports from JS targetsJeroen van Rijn6 days1-57/+0
| | | | 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-271-6/+78
| | | | | 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-271-4/+5
|
* Use `< 0` instead of `== -1` for comparisonsgingerBill2025-11-271-1/+1
|
* Handle `Allocator_Error` correctly in `core:math/big`gingerBill2025-11-271-1/+5
|
* Change Odin's LICENSE to zlib from BSD 3-clausegingerBill2025-10-281-1/+1
| | | | 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.
* Package lines for `core:math` and more.Jeroen van Rijn2025-10-091-3/+2
|
* Turn `core:math/bìg` tests into regular `core:testing` tests.Jeroen van Rijn2025-06-111-1/+1
| | | | | | `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.
* 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).
* Add missing `string_to_int` alias in `core:math/big`Feoramund2024-06-091-0/+1
|
* fix a couple of -vet-style failures after ↵Laytan2024-05-091-2/+2
| | | | f54977336b27c32eab52b77d94e7b1610f4350cf
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* Use positional and named arguments within the core librarygingerBill2023-06-211-1/+1
|
* Simplify docs to hide the copyrightgingerBill2022-01-171-0/+2
|
* Merge branch 'master' into optional-semicolonsgingerBill2021-09-061-22/+187
|\
| * Add `internal_int_(pack, unpack)`.Jeroen van Rijn2021-09-061-0/+111
| |
| * big: Add ASCII file import/export.Jeroen van Rijn2021-09-051-12/+67
| |
| * big: Add `internal_int_is_prime`.Jeroen van Rijn2021-09-021-8/+8
| |
| * big: Add `internal_int_exponent_mod`.Jeroen van Rijn2021-09-011-2/+1
| |
* | Strip even more semicolons if followed by a `}` or `)` on the same linegingerBill2021-08-311-2/+2
| |
* | Remove unneeded semicolons from the core librarygingerBill2021-08-311-140/+140
|/
* Add tests for `internal_int_is_square'.Jeroen van Rijn2021-08-281-1/+1
|
* big: Update license to BSD-3.Jeroen van Rijn2021-08-191-1/+1
|
* Replace `err != nil` with `or_return` where appropriategingerBill2021-08-151-24/+19
|
* big: Add arguments and usage to test.py.Jeroen van Rijn2021-08-111-1/+1
|
* big: Add `_private_int_sqr_comba`.Jeroen van Rijn2021-08-111-0/+4
|
* big: Finish refactor.Jeroen van Rijn2021-08-111-29/+33
|
* big: More refactoring.Jeroen van Rijn2021-08-111-19/+14
|
* big: Improved `zero_unused` helper.Jeroen van Rijn2021-08-111-1/+1
|
* bit: Improved bitfield extraction.Jeroen van Rijn2021-08-111-2/+4
|
* big: `Error.None` -> `nil`Jeroen van Rijn2021-08-111-25/+25
|
* big: Add `factorial`, have tests use hex strings.Jeroen van Rijn2021-08-111-2/+2
|
* big: fix `itoa` base PoT other than 16.Jeroen van Rijn2021-08-111-1/+1
|
* big: Improve `int_bitfield_extract`.Jeroen van Rijn2021-08-111-1/+1
|
* big: Add `sqrt`.Jeroen van Rijn2021-08-111-1/+1
|
* big: Add `atoi`.Jeroen van Rijn2021-08-111-9/+95
|
* big: Add another way to estimate radix size.Jeroen van Rijn2021-08-111-10/+65
|
* big: `itoa` now works for arbitrary radixes.Jeroen van Rijn2021-08-111-40/+87
|
* big: Add `pow`.Jeroen van Rijn2021-08-111-2/+2
|
* big: Finish big ZII refactor.Jeroen van Rijn2021-08-111-44/+54
|
* big: More ZII refactoring.Jeroen van Rijn2021-08-111-2/+3
|
* big: More ZII refactoring.Jeroen van Rijn2021-08-111-2/+1
|
* big: Continuing to refactor.Jeroen van Rijn2021-08-111-1/+1
|
* bigint: refactor to `big.Int` instead of `bigint.Int`.Jeroen van Rijn2021-08-111-0/+282