Commit Graph

  • 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
  • 3e961af5f1 Sort files by name in packages gingerBill 2021-08-02 22:55:22 +01:00
  • 9e6e769141 Add sanity checks to checker dev-2021-08 gingerBill 2021-08-02 18:32:17 +01:00
  • c0f746a251 Merge pull request #1065 from Kelimion/string_cut Jeroen van Rijn 2021-08-02 18:09:59 +02:00
  • ccbdf086ff Add @(warning=<string>) gingerBill 2021-08-02 16:58:50 +01:00
  • d260ca6738 string.cut uses context.allocator by default. Jeroen van Rijn 2021-08-02 17:58:42 +02:00
  • b0e64ca7e8 Prepare tokenizer for optimizations gingerBill 2021-08-02 16:47:32 +01:00
  • 7f3d4cb504 Remove the literal conversion logic to the parser from the tokenizer gingerBill 2021-08-02 00:53:45 +01:00
  • 97be36d18a Replace line with column_minus_one in Tokenizer; Remove dead code gingerBill 2021-08-02 00:26:54 +01:00
  • be76da2c90 Begin optimizing tokenizer; Replace gb_utf8_decode with utf8_decode (CC but easier to change later) gingerBill 2021-08-01 23:56:17 +01:00
  • b1a8357f50 Clean up a bit of the tokenizer code so that the semicolon insertion rules are in one place gingerBill 2021-08-01 22:41:00 +01:00
  • 0dc900ba34 Add strings.cut, which returns a substring. Jeroen van Rijn 2021-08-01 19:41:20 +02:00
  • 700624119b Give begin_error_block its own recursive mutex gingerBill 2021-07-29 12:35:11 +01:00
  • af32aba7fc Modify MPMCQueue behaviour to use i32 over isize; Correct cache line padding within MPMCQueue gingerBill 2021-07-28 00:59:30 +01:00
  • 541c79c01a Add mutex for @(builtin) attributes gingerBill 2021-07-28 00:27:16 +01:00
  • 358226468d EXPERIMENT: Set DEFAULT_TO_THREADED_CHECKER on all platforms gingerBill 2021-07-27 23:55:55 +01:00
  • d1e5f34f76 Use DEFAULT_TO_THREADED_CHECKER gingerBill 2021-07-27 23:55:19 +01:00
  • 416dd93bf7 Add accidentally removed call gingerBill 2021-07-27 23:39:35 +01:00
  • 7c80577160 Correct race condition on untyped expr info map logic on global evaluations gingerBill 2021-07-27 23:37:55 +01:00
  • a5d6fda433 Define which mutexes are blocking and recursive explicitly gingerBill 2021-07-27 23:14:01 +01:00
  • 4bc3796f9b Short circuit check_with_workers logic on worker_count == 0 gingerBill 2021-07-27 23:00:51 +01:00
  • 5e12f5a746 Unify threading logic gingerBill 2021-07-27 22:55:32 +01:00
  • 4080ba4026 Remove global semaphore and place in CheckerInfo gingerBill 2021-07-27 21:42:43 +01:00
  • e17593be94 Remove dead mutex gingerBill 2021-07-27 21:14:06 +01:00
  • 44aa69748c Correct logic for check_import_entities - collect file decls gingerBill 2021-07-27 21:13:03 +01:00
  • 9cd5ea59dd Big simplification and improvement of the entity collection system, reducing unneeded steps for packages gingerBill 2021-07-27 20:45:50 +01:00
  • 116e98b378 Improve default scope size gingerBill 2021-07-27 10:59:39 +01:00
  • ae25787f48 Fix syntax error for a missing package name gingerBill 2021-07-26 11:43:17 +01:00
  • 08dc829b70 Manually short circuit in lb_build_if_stmt for constant conditions gingerBill 2021-07-26 10:59:07 +01:00
  • 3ac674cf02 Fix typo gingerBill 2021-07-25 13:12:09 +01:00
  • 6cd06ab95f Minor fix gingerBill 2021-07-25 13:07:31 +01:00
  • 99080d41f3 INTERNAL USE ONLY: //+lazy build flag gingerBill 2021-07-25 13:06:09 +01:00