Commit Graph

  • c1a001c331 big: Add randomized testing. Jeroen van Rijn 2021-07-29 17:29:32 +02:00
  • 13fab36639 big: Fix mul. Jeroen van Rijn 2021-07-29 16:37:16 +02:00
  • 708389a7ee big: Improve test driver. Jeroen van Rijn 2021-07-28 22:35:25 +02:00
  • fb6c9af1ae big: Improve tests. Jeroen van Rijn 2021-07-28 21:57:49 +02:00
  • 85aa4dd670 big: Start test suite. Jeroen van Rijn 2021-07-28 21:09:52 +02:00
  • 74258a170a big: fix itoa base PoT other than 16. Jeroen van Rijn 2021-07-28 15:59:39 +02:00
  • 2fbff25a18 big: Improve int_bitfield_extract. Jeroen van Rijn 2021-07-28 15:23:48 +02:00
  • 9c150381bf big: Add rand. Jeroen van Rijn 2021-07-28 00:58:28 +02:00
  • 531c4936dd big: Add root_n. Jeroen van Rijn 2021-07-27 20:33:32 +02:00
  • 2aae1016ab big: Add sqrt. Jeroen van Rijn 2021-07-27 16:41:20 +02:00
  • 9c2468ecf7 big: Add atoi. Jeroen van Rijn 2021-07-26 21:32:29 +02:00
  • 0a431eef19 big: Add another way to estimate radix size. Jeroen van Rijn 2021-07-26 16:32:59 +02:00
  • 9646d1f2b8 big: Add submod, mulmod, sqrmod. Jeroen van Rijn 2021-07-26 15:07:58 +02:00
  • 5f7aeb3045 big: Add mod and addmod. Jeroen van Rijn 2021-07-26 14:55:03 +02:00
  • 1ebaa9fb3b big: itoa now works for arbitrary radixes. Jeroen van Rijn 2021-07-25 19:32:08 +02:00
  • c2255c6c19 big: Add div. Jeroen van Rijn 2021-07-25 13:25:40 +02:00
  • 2884fa5506 big: add div by 3. Jeroen van Rijn 2021-07-24 19:01:55 +02:00
  • 31c94bd7f8 big: Finish log, fix sqr. Jeroen van Rijn 2021-07-24 13:40:36 +02:00
  • 5f63e3952e big: Correct pow bugs from the original. Jeroen van Rijn 2021-07-24 09:59:38 +02:00
  • d953e40fb3 big: Add pow. Jeroen van Rijn 2021-07-23 22:47:44 +02:00
  • c3a4d7dda2 big: Fast square method. Jeroen van Rijn 2021-07-23 21:20:37 +02:00
  • b4a29844e9 big: Add multiplication. Jeroen van Rijn 2021-07-23 19:04:55 +02:00
  • 0254057f1b big: Add swap. Jeroen van Rijn 2021-07-23 01:13:24 +02:00
  • f34ba44bf8 big: Add shl, shr and shrmod. Jeroen van Rijn 2021-07-22 23:00:36 +02:00
  • d4d863c4db big: Add mod_power_of_two. Jeroen van Rijn 2021-07-22 18:12:19 +02:00
  • 78c0877994 big: Add get(a, type) and get_float. Jeroen van Rijn 2021-07-22 17:21:39 +02:00
  • 1d0b37c1d8 big: add shl1, shr1. Jeroen van Rijn 2021-07-21 17:56:15 +02:00
  • 7648f2e655 big: Finish big ZII refactor. Jeroen van Rijn 2021-07-21 13:46:37 +02:00
  • d9efa6c8b5 big: More ZII refactoring. Jeroen van Rijn 2021-07-21 09:06:28 +02:00
  • 2e372b33a3 big: More ZII refactoring. Jeroen van Rijn 2021-07-20 22:59:26 +02:00
  • 687c211a58 big: ZII. Jeroen van Rijn 2021-07-20 20:18:36 +02:00
  • 4eadd0867d big: Continuing to refactor. Jeroen van Rijn 2021-07-20 19:51:39 +02:00
  • 9dba17cf87 bigint: refactor to big.Int instead of bigint.Int. Jeroen van Rijn 2021-07-20 17:15:06 +02:00
  • baef0c291d bigint: Added some more helpers. Jeroen van Rijn 2021-07-19 23:00:08 +02:00
  • cccd290834 bigint: Add is_power_of_two helper. Jeroen van Rijn 2021-07-19 14:16:44 +02:00
  • 5af85aed3d bigint: itoa support for arbitrary precision if is_power_of_two(radix) Jeroen van Rijn 2021-07-18 20:54:40 +02:00
  • e600e5947b bigint: remove unnecessary boundary checks. Jeroen van Rijn 2021-07-18 15:56:20 +02:00
  • d7ae611f76 bigint: itoa now writes backwards directly, no need to reverse after. Jeroen van Rijn 2021-07-18 15:42:19 +02:00
  • 04a83eb9f7 bigint: pass size to itoa_raw. Jeroen van Rijn 2021-07-18 13:47:10 +02:00
  • 341e8a3c99 bigint: itoa works for numbers <= 120 bits. Jeroen van Rijn 2021-07-18 02:17:51 +02:00
  • e3d8ac559d bigint: Fast paths for radix code. Jeroen van Rijn 2021-07-18 00:58:19 +02:00
  • 767948ab46 bigint: log_n for bases that fit within one DIGIT or are a power of two. Jeroen van Rijn 2021-07-17 21:19:41 +02:00
  • dbcd8da733 bigint: Working on itoa and logn. Jeroen van Rijn 2021-07-17 15:40:57 +02:00
  • 905d5459a9 bigint: Add count_bits and more prep. Jeroen van Rijn 2021-07-17 01:04:27 +02:00
  • dfd5a993a2 bigint: Prepare for multiplication. Jeroen van Rijn 2021-07-17 00:03:40 +02:00
  • daceaa65f5 bigint: Add substractin with immediate. Jeroen van Rijn 2021-07-16 21:29:10 +02:00
  • c2c07f07db Add single DIGIT addition. Jeroen van Rijn 2021-07-16 19:31:25 +02:00
  • c5cbd3260a bigint: Add prototypes for immediate add+sub. Jeroen van Rijn 2021-07-16 01:51:57 +02:00
  • d57e1be89f bigint: Improve add. Jeroen van Rijn 2021-07-16 01:01:48 +02:00
  • 18dda6ff9d Start of core:math/bigint Jeroen van Rijn 2021-07-15 23:34:02 +02:00
  • 7afc367275 Update examples/all/all_main.odin gingerBill 2021-08-11 19:11:00 +01:00
  • c465171b45 Fix #1061 gingerBill 2021-08-09 21:41:19 +01:00
  • 02f22a0b3f Correct DllMain behaviour gingerBill 2021-08-09 21:23:24 +01:00
  • 193fd0eecb Correct and improve type inference for swizzling expressions gingerBill 2021-08-09 20:13:58 +01:00
  • 01f431b01f Unify semantics of the built-in swizzle procedure with the selector expression semantics e.g. .xyz gingerBill 2021-08-09 19:37:58 +01:00
  • aebfa4b28e Allow len and cap to return a uint if a type hint is uint to aid people wanting to use unsigned integers gingerBill 2021-08-09 17:39:38 +01:00
  • a3abe991a4 Add package core:encoding/hxa gingerBill 2021-08-09 16:26:51 +01:00
  • e793f92e67 Improve parsing handling for the { return } cases gingerBill 2021-08-09 13:01:47 +01:00
  • 042f376626 Minor code changes to Map/StringMap gingerBill 2021-08-09 13:01:26 +01:00
  • d99ed692ba Add utility procedures: io.read_ptr; io.write_ptr; io.read_ptr_at; io.write_ptr_at gingerBill 2021-08-09 12:33:21 +01:00
  • 4d00c2b800 Allocator_Error.Mode_Not_Implemented; Minor improvement to map runtime procedures gingerBill 2021-08-08 14:29:45 +01:00
  • a5605e94b1 Simplify Map and StringMap in the compiler to reuse the hashes' array data if possible. gingerBill 2021-08-08 13:56:40 +01:00
  • 9cfe20cfb4 Correct error message for add_import_dependency_node gingerBill 2021-08-08 13:13:31 +01:00
  • db3501f61b [Breaking] Change the layout json.Value to be a union rather than a struct of a json.Pos and the union gingerBill 2021-08-08 12:59:35 +01:00
  • 48538aa792 Remove package core:encoding/cel gingerBill 2021-08-08 12:50:38 +01:00
  • 5fd64f48ee Minor procedure rename gingerBill 2021-08-08 12:48:44 +01:00
  • a3b7126875 Simplify init_tokenizer_with_data gingerBill 2021-08-08 12:47:45 +01:00
  • 5756c8a7c6 Merge branch 'master' of https://github.com/odin-lang/Odin gingerBill 2021-08-08 12:45:33 +01:00
  • cdd0061869 Prefer ..= over .. gingerBill 2021-08-08 12:45:27 +01:00
  • e6adfd8054 Update create_nightly_json.py Mikkel Hjortshøj 2021-08-08 11:29:56 +02:00
  • 6d59223efd Merge pull request #1072 from Kelimion/cel_fix_ise Jeroen van Rijn 2021-08-08 02:21:04 +02:00
  • ebd034fff9 CEL: Fix ISE. Jeroen van Rijn 2021-08-08 02:19:32 +02:00
  • 000bda8419 Reduce superfluous error messages for return statements expecting not-1 return values gingerBill 2021-08-07 16:29:00 +01:00
  • 423b842347 Fix typo gingerBill 2021-08-07 15:07:29 +01:00
  • 16eeae36d7 Inline heap_allocator resize logic on *nix platforms gingerBill 2021-08-07 15:05:46 +01:00
  • 5453e92bcb Minor test on array_set_capacity gingerBill 2021-08-07 14:44:48 +01:00
  • c16c9535d9 Reorder ci.yml from run check version to version check run gingerBill 2021-08-07 14:40:54 +01:00
  • 662c7b1e71 Minor clean-up gingerBill 2021-08-07 14:39:26 +01:00
  • 571170fd30 Improve and simplify the memory layout of MPMCQueue gingerBill 2021-08-07 14:25:48 +01:00
  • 911c428dac Remove dead code in queue.cpp; clean up initialization code gingerBill 2021-08-07 13:54:08 +01:00
  • 40822be595 Reorganize llvm_backend.cpp into separate files for easier maintenance gingerBill 2021-08-07 12:01:48 +01:00
  • f5e51a29b5 Fix #1070 gingerBill 2021-08-07 11:23:40 +01:00
  • beaad719ad Reallow using on enum declarations temporarily but with a warning. gingerBill 2021-08-05 17:51:45 +01:00
  • 0d257c61cd Disallow using on an enum declaration. gingerBill 2021-08-05 17:46:42 +01:00
  • dd8fa1d690 Prefer ..= over .. gingerBill 2021-08-04 00:36:10 +01:00
  • af6df7d7c9 Improve error cases in core:odin/parser gingerBill 2021-08-04 00:23:31 +01:00
  • 57a17a708b Improve core:odin/parser gingerBill 2021-08-04 00:10:41 +01:00
  • 1f79082921 Remove dead comments gingerBill 2021-08-04 00:10:05 +01:00
  • afff9478c8 Make core:odin/tokenizer be consistent with the compiler's version gingerBill 2021-08-03 23:27:26 +01:00
  • b352b42afc Remove old comment gingerBill 2021-08-03 16:31:50 +01:00
  • c3e4509d17 Improve error message when using a comma rather than a semicolon in a bit_set gingerBill 2021-08-03 15:46:14 +01:00
  • 664be28941 Fix typo gingerBill 2021-08-03 15:45:32 +01:00
  • d7e970ac32 Add extra debugf message for generate missing procedure gingerBill 2021-08-03 14:36:15 +01:00
  • 810dcfc602 Remove debug gb_printf_err and replace with debugf gingerBill 2021-08-03 14:30:32 +01:00
  • 14645b147f Reorganize missing_procedures_to_check generation code gingerBill 2021-08-03 14:17:39 +01:00
  • b036cc9013 Add missing_procedures_to_check to lbModule gingerBill 2021-08-03 14:13:38 +01:00
  • 3a8ac92995 Add sanity check in lb_create_procedure gingerBill 2021-08-03 13:49:01 +01:00
  • 67bedcba4b Reorganize stages in checker gingerBill 2021-08-03 13:41:28 +01:00
  • 4987ef89f1 Reorganize some of the checker stages gingerBill 2021-08-03 13:40:47 +01:00
  • 545b345eea Remove optimizations in tokenizer and default to older code (same logic) (optimize later) gingerBill 2021-08-03 13:33:01 +01:00