aboutsummaryrefslogtreecommitdiff
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
...
| * | add `map_entry` procedureLaytan Laats2024-11-282-0/+49
| |/
* | Merge pull request #4623 from Yawning/feature/rt-assert-ensuregingerBill2025-01-061-0/+29
|\ \ | | | | | | base/runtime: Add `ensure` and `ensure_contextless`
| * | base/runtime: Add `ensure` and `ensure_contextless`Yawning Angel2024-12-251-0/+29
| |/ | | | | | | | | | | | | This provides an equivalent to `assert` and `assert_contextless` that are always evaluated, ignoring `ODIN_DISABLE_ASSERT`, which is useful for enforcing API contracts or "asserting" on conditionals with side-effects.
* | Merge pull request #4654 from obiwan87/masterLaytan2025-01-052-2/+6
|\ \ | | | | | | Minor adjustments in documentation-only files for better LSP support
| * | spacingLaytan2025-01-051-0/+1
| | |
| * | Import "base:runtime" to resolve reference to type info correctlyAntonino Simone Di Stefano2025-01-031-0/+2
| | |
| * | Remove typeidAntonino Simone Di Stefano2025-01-031-1/+1
| | | | | | | | | | | | seems to be a typo
| * | Make expect parameter polymorphicAntonino Simone Di Stefano2025-01-031-1/+1
| | |
| * | Import "base:runtime" to make type references validAntonino Simone Di Stefano2025-01-031-0/+1
| |/
* | fix N=1 and cleanup testsfleandro2025-01-031-6/+6
| |
* | runtime: map_cell_index_static produced wrong results when the number of ↵fleandro2025-01-031-5/+5
|/ | | | elements per cell was a power of 2
* Fix #4509Jeroen van Rijn2024-11-241-0/+2
|
* [runtime] `make(map[K]V)` should not allocate any capacityTetralux2024-11-161-2/+2
| | | | | | | `make(map[K]V)` was resolving to `make_map_cap()` which allocates initial capacity when it wasn't intended to. It now calls `make_map()` which doesn't allocate any capacity. Both `make(map[K]V)` and `make(map[K]V, allocator)` will NOT allocate initial capacity now.
* Remove `#relative` types from the compilergingerBill2024-11-142-24/+0
|
* math/rand: add `choice_bit_set`Laytan Laats2024-10-261-13/+1
|
* Add make_map that just takes an allocator and no capacity, similar to ↵Karl Zylinski2024-10-021-2/+14
| | | | make_dynamic_array. This renames the old make_map to make_map_cap.
* Add documentation to `runtime.container_of`mtarik34b2024-09-291-0/+33
|
* Fix 128-bit integer support for wasm targetsgingerBill2024-09-201-19/+41
|
* Merge pull request #4270 from flysand7/heap-alloc-resize-fixgingerBill2024-09-191-10/+12
|\ | | | | Fix resize OOB when copying old data that's bigger than new data
| * Fix vet errorsflysand72024-09-191-1/+0
| |
| * Fix resize OOB when copying old data that's bigger than new dataflysand72024-09-191-9/+12
| |
* | Merge branch 'master' into file-tags-without-commentsKarl Zylinski2024-09-172-6/+9
|\|
| * Merge pull request #4242 from laytan/caller-expressiongingerBill2024-09-161-2/+2
| |\ | | | | | | add '#caller_expression'
| | * add '#caller_expression'Laytan Laats2024-09-141-2/+2
| | |
| * | [mem]: Fix handling of default resize to check alignmentflysand72024-09-111-4/+7
| |/
* / Moved all packages in core, base, vendor, tests and examples to use new #+ ↵Karl Zylinski2024-09-1424-43/+43
|/ | | | file tag syntax.
* Added `#any_int` directive to some more builtin slice/dynamic arrayFranz Hoeltermann2024-09-032-13/+13
| | | | procedures
* Added `#any_int` to some #soa procs to mirror the behaviour of theirFranz Hoeltermann2024-09-031-5/+5
| | | | non-soa counterparts
* Move some types to runtime, use reflection instead of lutDamian Tarnawski2024-08-291-0/+29
|
* Add API for freeing `thread_local` stateFeoramund2024-08-261-0/+34
|
* Add `intrinsics.type_has_shared_fields`gingerBill2024-08-241-0/+2
|
* Fix `-vet-tabs` issuesgingerBill2024-08-241-2/+2
|
* Merge pull request #4089 from laytan/riscv64gingerBill2024-08-223-0/+15
|\ | | | | add support for linux_riscv64 and freestanding_riscv64
| * add support for linux_riscv64 and freestanding_riscv64Laytan2024-08-203-0/+15
| |
* | add constant_log2 to intrinsics fileLaytan2024-08-201-0/+2
| |
* | fix i128 division?Laytan2024-08-201-4/+22
|/
* implement lshrti3 on wasmLaytan Laats2024-08-181-0/+21
|
* Add `assert_contextless`, `panic_contextless`, `unimplemented_contextless`gingerBill2024-08-142-0/+31
|
* Merge pull request #4056 from laytan/re-enable-runtime-wasm-stuffgingerBill2024-08-131-11/+2
|\ | | | | re-enable some wasm things in runtime
| * re-enable some wasm things in runtimeLaytan Laats2024-08-101-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No idea why the floattidf procs are bodged to return 0, does somebody know? I have just enabled the original codepath, if nobody knows I suggest just enabling it and see if we get complaints, it works on all wasm stuff I tried. The linkage being set to "internal" instead of "strong" is actually causing problems in my projects which is what prompted looking at this in the first place, some of these functions were actually needed but not added/used because they had internal linkage. This only happens on bigger projects (or just when using f16?). Unfortunately `git blame` gave me this generic commit: https://github.com/odin-lang/Odin/commit/94bad4d7861c78b9e7191ec0c3114861a1536d5c#diff-fb9f42022cb95efa59d16813546b8cb310234428c85edfabf09b1425c9dc46af
* | fix copy-paste error in `make` docsLaytan Laats2024-08-111-2/+2
| |
* | typo fixAbdul Rahman Sibahi2024-08-111-1/+1
|/
* Fix documented names of a few SIMD proceduresFeoramund2024-08-061-4/+4
|
* Bodge: Improve `aligned_resize` logicgingerBill2024-08-061-8/+15
|
* Add `intrinsics.masked_expand_load` and `intrinsics.masked_compress_store`gingerBill2024-08-051-0/+4
|
* Remove dead codegingerBill2024-08-051-3/+0
|
* Add `intrinsics.simd_masked_load` and `intrinsics.simd_masked_store`gingerBill2024-08-051-2/+5
|
* Add `intrinsics.simd_gather` and ``intrinsics.simd_scatter`gingerBill2024-08-051-0/+4
|
* Rename `add_sat` -> `saturating_add`gingerBill2024-08-051-2/+5
|
* Add `simd_reduce_any` and `simd_reduce_all`gingerBill2024-08-051-7/+11
|