Jeroen van Rijn
18dda6ff9d
Start of core:math/bigint
...
We have:
- `init` to create a new `Int`
- `init(from_integer)` to create a new `Int` and set it to `from_integer`.
- `set(Int, from_integer)` to set an `Int` to `from_integer`
- `add(dest, a, b)` to add `a` and `b` into `dest`.
- `sub(dest, a, b)` to subtract `b` from `a` and put the result in `dest`.
And a few helper functions, like:
- `is_zero`, `is_negative`, ...
- `grow`, `shrink`, `clear`, `zero`
2021-08-11 20:59:50 +02:00
gingerBill
7afc367275
Update examples/all/all_main.odin
2021-08-11 19:11:00 +01:00
gingerBill
c465171b45
Fix #1061
2021-08-09 21:41:19 +01:00
gingerBill
02f22a0b3f
Correct DllMain behaviour
2021-08-09 21:23:24 +01:00
gingerBill
193fd0eecb
Correct and improve type inference for swizzling expressions
2021-08-09 20:13:58 +01:00
gingerBill
01f431b01f
Unify semantics of the built-in swizzle procedure with the selector expression semantics e.g. .xyz
2021-08-09 19:37:58 +01:00
gingerBill
aebfa4b28e
Allow len and cap to return a uint if a type hint is uint to aid people wanting to use unsigned integers
2021-08-09 17:39:38 +01:00
gingerBill
a3abe991a4
Add package core:encoding/hxa
2021-08-09 16:26:51 +01:00
gingerBill
e793f92e67
Improve parsing handling for the { return } cases
2021-08-09 13:01:47 +01:00
gingerBill
042f376626
Minor code changes to Map/StringMap
2021-08-09 13:01:26 +01:00
gingerBill
d99ed692ba
Add utility procedures: io.read_ptr; io.write_ptr; io.read_ptr_at; io.write_ptr_at
2021-08-09 12:33:21 +01:00
gingerBill
4d00c2b800
Allocator_Error.Mode_Not_Implemented; Minor improvement to map runtime procedures
2021-08-08 14:29:45 +01:00
gingerBill
a5605e94b1
Simplify Map and StringMap in the compiler to reuse the hashes' array data if possible.
2021-08-08 13:56:40 +01:00
gingerBill
9cfe20cfb4
Correct error message for add_import_dependency_node
2021-08-08 13:13:31 +01:00
gingerBill
db3501f61b
[Breaking] Change the layout json.Value to be a union rather than a struct of a json.Pos and the union
2021-08-08 12:59:35 +01:00
gingerBill
48538aa792
Remove package core:encoding/cel
2021-08-08 12:50:38 +01:00
gingerBill
5fd64f48ee
Minor procedure rename
2021-08-08 12:48:44 +01:00
gingerBill
a3b7126875
Simplify init_tokenizer_with_data
2021-08-08 12:47:45 +01:00
gingerBill
5756c8a7c6
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-08-08 12:45:33 +01:00
gingerBill
cdd0061869
Prefer ..= over ..
2021-08-08 12:45:27 +01:00
Mikkel Hjortshøj
e6adfd8054
Update create_nightly_json.py
2021-08-08 11:29:56 +02:00
Jeroen van Rijn
6d59223efd
Merge pull request #1072 from Kelimion/cel_fix_ise
...
CEL: Fix by changing `using enum` to ISE.
2021-08-08 02:21:04 +02:00
Jeroen van Rijn
ebd034fff9
CEL: Fix ISE.
2021-08-08 02:19:32 +02:00
gingerBill
000bda8419
Reduce superfluous error messages for return statements expecting not-1 return values
2021-08-07 16:29:00 +01:00
gingerBill
423b842347
Fix typo
2021-08-07 15:07:29 +01:00
gingerBill
16eeae36d7
Inline heap_allocator resize logic on *nix platforms
2021-08-07 15:05:46 +01:00
gingerBill
5453e92bcb
Minor test on array_set_capacity
2021-08-07 14:44:48 +01:00
gingerBill
c16c9535d9
Reorder ci.yml from run check version to version check run
2021-08-07 14:40:54 +01:00
gingerBill
662c7b1e71
Minor clean-up
2021-08-07 14:39:26 +01:00
gingerBill
571170fd30
Improve and simplify the memory layout of MPMCQueue
2021-08-07 14:25:48 +01:00
gingerBill
911c428dac
Remove dead code in queue.cpp; clean up initialization code
2021-08-07 13:54:08 +01:00
gingerBill
40822be595
Reorganize llvm_backend.cpp into separate files for easier maintenance
2021-08-07 12:01:48 +01:00
gingerBill
f5e51a29b5
Fix #1070
2021-08-07 11:23:40 +01:00
gingerBill
beaad719ad
Reallow using on enum declarations temporarily but with a warning.
2021-08-05 17:51:45 +01:00
gingerBill
0d257c61cd
Disallow using on an enum declaration.
2021-08-05 17:46:42 +01:00
gingerBill
dd8fa1d690
Prefer ..= over ..
2021-08-04 00:36:10 +01:00
gingerBill
af6df7d7c9
Improve error cases in core:odin/parser
2021-08-04 00:23:31 +01:00
gingerBill
57a17a708b
Improve core:odin/parser
2021-08-04 00:10:41 +01:00
gingerBill
1f79082921
Remove dead comments
2021-08-04 00:10:05 +01:00
gingerBill
afff9478c8
Make core:odin/tokenizer be consistent with the compiler's version
2021-08-03 23:27:26 +01:00
gingerBill
b352b42afc
Remove old comment
2021-08-03 16:31:50 +01:00
gingerBill
c3e4509d17
Improve error message when using a comma rather than a semicolon in a bit_set
2021-08-03 15:46:14 +01:00
gingerBill
664be28941
Fix typo
2021-08-03 15:45:32 +01:00
gingerBill
d7e970ac32
Add extra debugf message for generate missing procedure
2021-08-03 14:36:15 +01:00
gingerBill
810dcfc602
Remove debug gb_printf_err and replace with debugf
2021-08-03 14:30:32 +01:00
gingerBill
14645b147f
Reorganize missing_procedures_to_check generation code
2021-08-03 14:17:39 +01:00
gingerBill
b036cc9013
Add missing_procedures_to_check to lbModule
2021-08-03 14:13:38 +01:00
gingerBill
3a8ac92995
Add sanity check in lb_create_procedure
2021-08-03 13:49:01 +01:00
gingerBill
67bedcba4b
Reorganize stages in checker
2021-08-03 13:41:28 +01:00
gingerBill
4987ef89f1
Reorganize some of the checker stages
2021-08-03 13:40:47 +01:00