gingerBill
de0d2ae178
Optimize append_elem for different optimization levels
...
* For `-o:size` and below, uses the type erased approach
* For `-o:speed` and above, the inlined form is used
This is necessary because a generic `mem_copy_non_overlapping` cannot be optimized when type erasure is used, meaning in a hot path where `append_elem` is used a lot; thus `mem_copy_non_overlapping` becomes a bottleneck.
2026-06-19 11:19:16 +01:00
gingerBill
7ef82c367c
Remove __copy_bits
2026-06-15 17:48:33 +01:00
gingerBill
ee5d5d6882
Remove the now defunct __write_bits and __read_bits
2026-06-15 16:57:27 +01:00
gingerBill
6feb33a79b
Heavily improve reading and writing to bit fields
2026-06-15 16:53:15 +01:00
Sylphrena
0aa85a035f
Added optional allocator error to map_insert
2026-06-13 20:00:02 +02:00
juaumjuaumjuaum
bf2d33f0e5
Swap panic_contextless and unimplemented_contexless documentation
...
They were swaped
2026-06-02 00:00:45 +02:00
gingerBill
1e1f37fcef
n -> num_appended for append return values
2026-05-18 14:33:35 +01:00
gingerBill
d4508e39de
Merge pull request #6677 from BigBoyBarney/builtin-fix
...
Fix `make_aligned` and `new_aligned` to be builtin
2026-05-12 14:31:26 +01:00
Sylphrena
b603e7400f
Fix make_aligned and new_aligned to be builtin
2026-05-11 21:54:31 +02:00
gingerBill
b0ee0bb635
Add @(fast_math={...}) + intrinsics.Fast_Math_Flags
2026-05-11 11:55:07 +01:00
gingerBill
d21fea404b
Merge pull request #6631 from heavyrain266/deprecate-haiku
...
removed Haiku from supported targets
2026-05-06 15:52:36 +01:00
gingerBill
09c7b75f79
Remove Odin_Endian_Type.Unknown
2026-05-05 10:18:19 +01:00
Ignacy Koper
183a4c2d7f
removed Haiku from base:runtime package
...
Signed-off-by: Ignacy Koper <ignacy423@gmail.com >
2026-04-28 19:27:24 +02:00
Ignacy Koper
3e64a72bad
removed Essence from supported targets
...
Signed-off-by: Ignacy Koper <ignacy423@gmail.com >
2026-04-27 11:10:48 +02:00
jakubtomsu
c55797356f
default NATIVE_SIMD_BIT_WIDTH to 128
2026-04-10 16:30:44 +02:00
jakubtomsu
0475456ac0
add native SIMD bit width constant
2026-04-09 20:43:14 +02:00
Tejas Hegde
d27f34f233
Updated delete_key doc to mention iteration behaviour
2026-03-30 19:29:52 +10:30
jakubtomsu
382ca331be
runtime align_forward procs as source of truth
2026-03-26 19:38:49 +01:00
WojtaZam
1f9f2dc0da
fix Error: Missing return statement at the end of the procedure pop_fixed_capacity_dynamic_array
2026-03-17 20:19:46 +01:00
Shane Shrybman
af2d8ca679
FCD array proc group add _elems
2026-03-15 21:45:44 -04:00
gingerBill
55f398b734
Add #no_bounds_check to appropriate procedures
2026-03-15 16:00:40 +00:00
gingerBill
ad1a10b8af
use intrinsics.mem_copy instead of a for-loop
2026-03-15 11:48:49 +00:00
gingerBill
310def1e71
Fix append_fixed_capacity_elems
2026-03-15 11:42:24 +00:00
gingerBill
c6772dfd06
Merge branch 'master' into bill/fixed-capacity-dynamic-array
2026-03-15 11:41:01 +00:00
Jeroen van Rijn
27667ce36b
iff -> if and only if (⟺)
2026-03-13 11:54:15 +01:00
gingerBill
c7308d86d4
Fix tests as they are not direct matches to small_array
2026-03-12 17:33:54 +00:00
gingerBill
26eb58b589
Move raw closer to usage
2026-03-12 17:03:07 +00:00
gingerBill
6c61b1d46c
Remove loc being passed
2026-03-12 16:59:58 +00:00
gingerBill
fac8471019
Fix typos
2026-03-12 16:59:11 +00:00
gingerBill
6e9d6bfbe5
Fixed tests
2026-03-12 16:55:46 +00:00
gingerBill
6a03cf5d68
Add "remove" procedures to fixed capacity dynamic arrays
2026-03-12 09:40:31 +00:00
gingerBill
535b70b82e
Add other @builtin procedures for fixed capacity dynamic arrays
2026-03-12 09:37:27 +00:00
gingerBill
f1dbe9c242
[dynamic; N]T proof of concept: fixed capacity dynamic array (akin to small_array.Small_Array(N, T))
2026-03-11 16:46:33 +00:00
Jeroen van Rijn
0087d6d62e
Add preserve/* to base:runtime
...
```odin
none :: proc "preserve/none" () {}
most :: proc "preserve/most" () {}
all :: proc "preserve/all" () {}
print_cc :: proc(type: any) {
ti := type_info_of(type.id)
p := ti.variant.(runtime.Type_Info_Procedure)
fmt.println(p.convention)
}
main :: proc() {
print_cc(none)
print_cc(most)
print_cc(all)
}
```
2026-03-08 15:05:23 +01:00
Gavin Rohrer
93b1e97402
fix documentation of assign_at
2026-03-07 10:07:15 -05:00
gingerBill
217b4967b0
Improve docs for type_info_underlying
2026-03-04 14:07:24 +00:00
gingerBill
029c96ce22
Separate type_info_core and type_info_underlying
2026-03-04 14:03:24 +00:00
Jeroen van Rijn
ed74233ace
Add bit_set to runtime.type_info_core.
2026-03-04 14:55:11 +01:00
gingerBill
2cb8155946
Add missing @(require_results)
2026-03-03 12:27:44 +00:00
gingerBill
a5e1eb56ab
Add explicit_underlying: bool RTTI field for bit_set; add runtime.type_info_underlying
2026-03-03 12:26:42 +00:00
gingerBill
30d87a2fd7
Merge pull request #6324 from Faker-09/dynamic_array_move_assert
...
Small optimization for dynamic arrays
2026-02-24 08:11:34 +00:00
Jeroen van Rijn
ea80eab75a
[core:sys/info] Remove @(init) where practical
2026-02-23 23:09:37 +01:00
Shane Shrybman
3fd9c915ed
Move assert(a.allocator.procedure != nil) out of the common path into the if check
2026-02-23 12:20:57 -05:00
Shane Shrybman
25fde8a03a
For #soa dynamic arrays. Move assert(a.allocator.procedure != nil) out of the common path into the if check
2026-02-23 11:35:16 -05:00
Shane Shrybman
a0c375dd02
A small optimization for dynamic arrays.
...
Move assert(a.allocator.procedure != nil) out of the common path into the if check
2026-02-23 11:21:07 -05:00
gingerBill
e6a62c4bb0
Minor optimization to map_probe_distance
2026-02-03 12:19:20 +00:00
gingerBill
07d814d9cf
Add struct #simple to force a struct to use simple comparison if all of the fields "nearly simply comparable".
2026-01-29 10:49:26 +00:00
gingerBill
7135bbdd67
Rename try_copy_* to write_*
2026-01-28 11:54:17 +00:00
gingerBill
0d8b1481ea
Improve try_copy_* logic
2026-01-28 11:53:40 +00:00
gingerBill
117e74cb8b
Fix typo in try_copy_caller_location
2026-01-28 11:43:29 +00:00