aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
Commit message (Collapse)AuthorAgeFilesLines
* Fix `append_nothing`gingerBill2022-08-261-1/+1
|
* Add a return value to `append` that states the number of elements that were ↵gingerBill2022-08-261-10/+18
| | | | returned
* Fix `append` for size_of(E) == 0Jeroen van Rijn2022-08-231-2/+2
|
* Fix #1965gingerBill2022-08-201-9/+19
|
* Update `delete` to pass size in bytes to free when possiblegingerBill2022-08-082-4/+19
|
* Add `#soa` pointer type to aid with refactoring to `#soa` data typesgingerBill2022-08-082-0/+13
| | | | | | | | a: #soa[16]Foo p := &a[6] #assert(type_of(p) == #soa^#soa[16]Foo) p^.x = 123 p.x = 123
* Clean-up and unification for the allocation proceduresgingerBill2022-08-082-24/+22
|
* Improve `resize` callgingerBill2022-08-083-22/+42
|
* Make `unreachable()` a built-in compiler-level proceduregingerBill2022-08-051-14/+0
|
* Fix string orderings to account for prefix-equal stringsAtanas Dimitrov2022-08-031-1/+6
|
* Simplify logic of `append` of zero sized elementsgingerBill2022-08-021-25/+31
|
* Replace `insert_at` with `inject_at` and `assign_at`gingerBill2022-07-241-4/+48
|
* Add runtime.dll_forward_reason for Windows DLLs.Jeroen van Rijn2022-06-212-5/+22
|
* Merge pull request #1818 from IanLilleyT/reserve_exceedgingerBill2022-06-121-2/+2
|\ | | | | Dynamic array append reserves more space when it exceeds capacity
| * Reserve more space when exceeding, not meeting, capacityIan Lilley2022-06-011-2/+2
| |
* | Merge pull request #1819 from IanLilleyT/no_query_infogingerBill2022-06-122-3/+3
|\ \ | | | | | | Allocator: tidying up Query_Info return values when not part of Query_Features
| * | tidying up Query_Info return value when not in query featuresIan Lilley2022-06-012-3/+3
| |/
* | Minor change to `shrink`gingerBill2022-06-121-4/+4
| |
* | [runtime] Add builtin `shrink` for dynamic arrays and mapsTetralux2022-06-043-2/+110
|/ | | | | | | | | | | | | | | Asks the allocator to shrink the backing allocation to the current __length__, or a capacity of the user's choosing. Returns `(did_shrink: bool, err: mem.Allocator_Error)`. ``` shrink(&array) // shrinks to len(array) shrink(&array, N) // shrink to N capacity shrink(&map) // shrinks down to len(map) shrink(&map, N) // shrink to N capacity ```
* Add `raw_simd_data`gingerBill2022-05-251-1/+5
|
* Merge functionality of `#maybe` with the standard 'union' functionalitygingerBill2022-05-232-2/+1
|
* Make `raw_data` return `[^]T` typesgingerBill2022-05-231-7/+7
|
* Clean up `core:time` to be consistent across all platformsgingerBill2022-05-121-1/+1
|
* Update arch enumgingerBill2022-05-012-2/+5
|
* Add new builtin `container_of`gingerBill2022-04-271-0/+10
|
* runtime: update comment descriptionhikari2022-04-161-0/+1
|
* runtime: fix typohikari2022-04-071-1/+1
|
* Merge pull request #1671 from colrdavidson/add_nocrtgingerBill2022-03-301-1/+1
|\ | | | | Make no crt work on Linux
| * Make no crt work on LinuxColin Davidson2022-03-301-1/+1
| |
* | `union #shared_nil`gingerBill2022-03-241-0/+1
| | | | | | | | This adds a feature to `union` which requires all the variants to have a `nil` value and on assign to the union, checks whether that value is `nil` or not. If the value is `nil`, the union will be `nil` (thus sharing the `nil` value)
* | Reinstate NBC.Jeroen van Rijn2022-03-151-1/+1
| |
* | [runtime] fix `insert_at` procedure group.Jeroen van Rijn2022-03-151-15/+18
|/
* Merge branch 'master' into freestanding_amd64gingerBill2022-03-142-1/+6
|\
| * Fix #1606 (Call `runtime._cleanup_runtime_contextless()` for `os.exit`)gingerBill2022-03-091-0/+5
| |
| * Merge pull request #1557 from semarie/openbsd-supportgingerBill2022-02-281-1/+1
| |\ | | | | | | initial OpenBSD support
| | * initial OpenBSD supportSébastien Marie2022-02-251-1/+1
| | |
* | | Correct calling convention for `_startup_runtime`gingerBill2022-02-281-1/+1
| | |
* | | Add `-disallow-rtti`gingerBill2022-02-283-115/+146
| | |
* | | Merge branch 'master' into freestanding_amd64gingerBill2022-02-281-1/+0
|\| |
| * | Remove `context.user_data`gingerBill2022-02-281-1/+0
| |/
* | Reorganize error check proceduresgingerBill2022-02-281-160/+157
| |
* | Add `-foreign-error-procedures`gingerBill2022-02-201-1/+19
|/
* Allow sysv and win64 calling conventions to be used on any platform on amd64gingerBill2022-02-161-0/+5
|
* Improve slice bounds checking runtime error messagesgingerBill2022-02-161-7/+7
|
* Merge pull request #1438 from odin-lang/odin-global-constants-as-enumsgingerBill2022-02-157-9/+38
|\ | | | | Odin global constants as enums
| * Merge branch 'master' into odin-global-constants-as-enumsgingerBill2022-02-154-9/+25
| |\
| * | Add `Odin_OS_Type` and `Odin_Arch_Type` to `core:runtime`gingerBill2022-01-201-0/+29
| | |
| * | Convert `ODIN_OS` and `ODIN_ARCH` to use enums rather than use stringsgingerBill2022-01-207-9/+9
| | |
* | | Use `objc_allocateClassPair` for `intrinsics.objc_register_class`gingerBill2022-02-141-0/+1
| | |
* | | Add procs_darwin.odingingerBill2022-02-081-0/+20
| |/ |/|