| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix use of errno on OpenBSD. | Dave Voutila | 2025-03-27 | 1 | -1/+1 |
| | | |||||
| * | Merge pull request #4836 from laytan/fix-wrong-out-of-memory | gingerBill | 2025-03-20 | 1 | -6/+7 |
| |\ | | | | | fix wrong out of memory in edge cases, just try allocate from block for one source of truth | ||||
| | * | fix wrong out of memory in edge cases, just try allocate from block for one ↵ | Laytan Laats | 2025-02-12 | 1 | -6/+7 |
| | | | | | | | | | source of truth | ||||
| * | | Fix #4903 | gingerBill | 2025-03-03 | 1 | -1/+3 |
| | | | |||||
| * | | Merge pull request #4466 from Barinzaya/simd_extract_msbs | gingerBill | 2025-02-24 | 1 | -0/+3 |
| |\ \ | | | | | | | SIMD Extract MSbs/LSbs Intrinsics | ||||
| | * | | Added simd_extract_lsbs intrinsic as well. | Barinzaya | 2025-02-24 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | Equivalent to the simd_extract_msbs intrinsic, except it extracts the least significant bit of each element instead. | ||||
| | * | | Added simd_extract_msbs intrinsic. | Barinzaya | 2025-02-24 | 1 | -0/+2 |
| | | | | |||||
| * | | | Add `@(require_results)` to random generator | gingerBill | 2025-02-24 | 1 | -0/+1 |
| |/ / | |||||
| * | | Fix `typeid` size for 32-bit platforms | gingerBill | 2025-02-20 | 1 | -0/+2 |
| | | | |||||
| * | | Keep -vet happy | gingerBill | 2025-02-20 | 1 | -1/+1 |
| | | | |||||
| * | | Change `typeid` definition to be based around the canonical type hash | gingerBill | 2025-02-20 | 1 | -47/+9 |
| |/ | | | | | | | | `typeid` used to be a fancy index with extra metadata stored on it. Now it is direct hash of the type. This is safe to do in practice since any possible collisions are checked at compile time AND the chances of having a 1% collision are around 1 in 600K (see the Birthday Paradox). Therefore accessing a `^Type_Info` is now a hash table lookup with linear probing. The table is twice the size than necessary so prevent too much probing due to an overly dense hash table. | ||||
| * | Added support for growing in place to some arenas. | Barinzaya | 2025-01-24 | 1 | -4/+18 |
| | | | | | | | | | | | | | | This affects `runtime.Arena` and `virtual.Arena`, but not currently `mem.Arena`. These changes allow the last allocation that has been made to be resized to a larger size by just extending their allocation in-place, when there's sufficient room in the memory block to do so. Shrinking in place and re-using the rest of the allocation can be supported using almost the same logic, but would require the memory to be zeroed. Since this would add a additional cost that isn't currently present, shrinking has not been changed. | ||||
| * | Add `priority_index` to `Foundation.framework` import in `base:runtime` | gingerBill | 2025-01-22 | 1 | -0/+1 |
| | | |||||
| * | fix map_entry sometimes giving wrong key pointer | Laytan Laats | 2025-01-18 | 1 | -10/+27 |
| | | | | | | | | `map_desired_position` does not return the actual position, probing must be done afterwards to figure out the real position. `map_entry` did not do this for the returned key pointer so it could point to the wrong key if probing was done. | ||||
| * | Fix: Issue with non-zeroed memory after arena_temp_and; | alektron | 2025-01-15 | 1 | -1/+2 |
| | | | | | Fix: total_used field of growing Arena was not decremented correctly in arena_temp_end; | ||||
| * | Merge pull request #4599 from Barinzaya/fix_dynamic_resize_zeroing_on_grow | gingerBill | 2025-01-06 | 1 | -3/+5 |
| |\ | | | | | Fix dynamic array not zeroing when growing | ||||
| | * | Fixed zeroing in resize_dynamic_array. | Barinzaya | 2024-12-19 | 1 | -3/+5 |
| | | | | | | | | | | | | | When a dynamic array has unused capacity and is resized to a size greater than its capacity, the unused part of its capacity wasn't being zeroed. | ||||
| * | | Merge pull request #4533 from laytan/map-entry | gingerBill | 2025-01-06 | 2 | -0/+49 |
| |\ \ | | | | | | | add `map_entry` procedure | ||||
| | * | | add `map_entry` procedure | Laytan Laats | 2024-11-28 | 2 | -0/+49 |
| | |/ | |||||
| * | | Merge pull request #4623 from Yawning/feature/rt-assert-ensure | gingerBill | 2025-01-06 | 1 | -0/+29 |
| |\ \ | | | | | | | base/runtime: Add `ensure` and `ensure_contextless` | ||||
| | * | | base/runtime: Add `ensure` and `ensure_contextless` | Yawning Angel | 2024-12-25 | 1 | -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/master | Laytan | 2025-01-05 | 2 | -2/+6 |
| |\ \ | | | | | | | Minor adjustments in documentation-only files for better LSP support | ||||
| | * | | spacing | Laytan | 2025-01-05 | 1 | -0/+1 |
| | | | | |||||
| | * | | Import "base:runtime" to resolve reference to type info correctly | Antonino Simone Di Stefano | 2025-01-03 | 1 | -0/+2 |
| | | | | |||||
| | * | | Remove typeid | Antonino Simone Di Stefano | 2025-01-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | seems to be a typo | ||||
| | * | | Make expect parameter polymorphic | Antonino Simone Di Stefano | 2025-01-03 | 1 | -1/+1 |
| | | | | |||||
| | * | | Import "base:runtime" to make type references valid | Antonino Simone Di Stefano | 2025-01-03 | 1 | -0/+1 |
| | |/ | |||||
| * | | fix N=1 and cleanup tests | fleandro | 2025-01-03 | 1 | -6/+6 |
| | | | |||||
| * | | runtime: map_cell_index_static produced wrong results when the number of ↵ | fleandro | 2025-01-03 | 1 | -5/+5 |
| |/ | | | | elements per cell was a power of 2 | ||||
| * | Fix #4509 | Jeroen van Rijn | 2024-11-24 | 1 | -0/+2 |
| | | |||||
| * | [runtime] `make(map[K]V)` should not allocate any capacity | Tetralux | 2024-11-16 | 1 | -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 compiler | gingerBill | 2024-11-14 | 2 | -24/+0 |
| | | |||||
| * | math/rand: add `choice_bit_set` | Laytan Laats | 2024-10-26 | 1 | -13/+1 |
| | | |||||
| * | Add make_map that just takes an allocator and no capacity, similar to ↵ | Karl Zylinski | 2024-10-02 | 1 | -2/+14 |
| | | | | | make_dynamic_array. This renames the old make_map to make_map_cap. | ||||
| * | Add documentation to `runtime.container_of` | mtarik34b | 2024-09-29 | 1 | -0/+33 |
| | | |||||
| * | Fix 128-bit integer support for wasm targets | gingerBill | 2024-09-20 | 1 | -19/+41 |
| | | |||||
| * | Merge pull request #4270 from flysand7/heap-alloc-resize-fix | gingerBill | 2024-09-19 | 1 | -10/+12 |
| |\ | | | | | Fix resize OOB when copying old data that's bigger than new data | ||||
| | * | Fix vet errors | flysand7 | 2024-09-19 | 1 | -1/+0 |
| | | | |||||
| | * | Fix resize OOB when copying old data that's bigger than new data | flysand7 | 2024-09-19 | 1 | -9/+12 |
| | | | |||||
| * | | Merge branch 'master' into file-tags-without-comments | Karl Zylinski | 2024-09-17 | 2 | -6/+9 |
| |\| | |||||
| | * | Merge pull request #4242 from laytan/caller-expression | gingerBill | 2024-09-16 | 1 | -2/+2 |
| | |\ | | | | | | | add '#caller_expression' | ||||
| | | * | add '#caller_expression' | Laytan Laats | 2024-09-14 | 1 | -2/+2 |
| | | | | |||||
| | * | | [mem]: Fix handling of default resize to check alignment | flysand7 | 2024-09-11 | 1 | -4/+7 |
| | |/ | |||||
| * / | Moved all packages in core, base, vendor, tests and examples to use new #+ ↵ | Karl Zylinski | 2024-09-14 | 24 | -43/+43 |
| |/ | | | | file tag syntax. | ||||
| * | Added `#any_int` directive to some more builtin slice/dynamic array | Franz Hoeltermann | 2024-09-03 | 2 | -13/+13 |
| | | | | | procedures | ||||
| * | Added `#any_int` to some #soa procs to mirror the behaviour of their | Franz Hoeltermann | 2024-09-03 | 1 | -5/+5 |
| | | | | | non-soa counterparts | ||||
| * | Move some types to runtime, use reflection instead of lut | Damian Tarnawski | 2024-08-29 | 1 | -0/+29 |
| | | |||||
| * | Add API for freeing `thread_local` state | Feoramund | 2024-08-26 | 1 | -0/+34 |
| | | |||||
| * | Add `intrinsics.type_has_shared_fields` | gingerBill | 2024-08-24 | 1 | -0/+2 |
| | | |||||
| * | Fix `-vet-tabs` issues | gingerBill | 2024-08-24 | 1 | -2/+2 |
| | | |||||