Tetralux
fa2296a124
[runtime] Add builtin shrink for dynamic arrays and maps
...
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
```
2022-06-04 23:29:47 +00:00
gingerBill
174fa9b490
Merge pull request #1817 from IanLilleyT/arena_allocation
...
Improved arena allocation with alignment
2022-06-02 10:53:23 +01:00
Ian Lilley
66de1856e3
tighter allocation for arena allocator
2022-06-01 21:37:05 -04:00
gingerBill
ba5f7c4e2a
Deprecate a..b based ranges in favour of ..=
dev-2022-06
2022-06-01 11:08:19 +01:00
gingerBill
487bd3d942
Keep compiler happy
2022-06-01 11:07:58 +01:00
gingerBill
4fac7a8f27
Update wasm/README.md
2022-06-01 10:40:59 +01:00
gingerBill
25dae06b6a
Remove loader.mjs
2022-06-01 10:32:24 +01:00
gingerBill
a1f15c2c69
Merge pull request #1807 from odin-lang/simd-dev
...
Generic #simd type and intrinsics
2022-05-31 11:52:24 +01:00
gingerBill
516f6647b4
Fix intrinsics.non_temporal_{load, store}
2022-05-31 11:00:41 +01:00
gingerBill
a7840d50e2
Correct documentation
2022-05-31 00:01:23 +01:00
gingerBill
cb10af08cb
Correct intrinsics.odin for documentation
2022-05-30 16:42:32 +01:00
gingerBill
4e49d24df9
Add enable_target_feature to ABM
2022-05-30 16:08:06 +01:00
gingerBill
68222cb8ab
Add SSE4.2
2022-05-30 16:06:31 +01:00
gingerBill
912d29af83
Add @(require_results) to all appropriate procedures
2022-05-30 15:59:48 +01:00
gingerBill
f3868ac932
Improve missing handled results for built in procedures
2022-05-30 15:57:26 +01:00
gingerBill
5b42dd7707
Correct @(require_results) on parapoly procedures
2022-05-30 15:27:09 +01:00
gingerBill
51707032d1
Add SSE4.1
2022-05-30 15:17:02 +01:00
gingerBill
a0babefe55
Fix lb_build_builtin_simd_proc
2022-05-30 15:13:45 +01:00
gingerBill
f3aefbc443
@(require_target_feature=<string>) @(enable_target_feature=<string>)
...
require_target_feature - required by the target micro-architecture
enable_target_feature - will be enabled for the specified procedure only
2022-05-30 14:53:12 +01:00
Jeroen van Rijn
a6c779b50e
Merge pull request #1815 from hasenj/patch-1
...
Missing lib imports for raylib on macOS
2022-05-30 15:32:46 +02:00
hasen
9fa41a97b9
Missing lib imports for raylib on macOS
...
The following frameworks are required for linking to work (due to dependency on glfw):
Cocoa, OpenGL, IOKit
2022-05-30 22:27:13 +09:00
gingerBill
cef022539e
Rename to lanes_rotate_left, lanes_rotate_right, lanes_reverse
2022-05-29 15:13:14 +01:00
gingerBill
f6dfa33697
Use single line attributes
2022-05-29 15:11:15 +01:00
gingerBill
bc3bf939e0
Add sha.odin
2022-05-29 14:56:25 +01:00
gingerBill
f5e5eac3b9
Add cmpxchg16b
2022-05-29 14:46:05 +01:00
Jeroen van Rijn
d50786bd30
Merge pull request #1814 from Kelimion/sdk_detect_fix
...
Fix SDK detection if no SDK installed.
2022-05-29 14:55:10 +02:00
gingerBill
0ccbea17aa
Add pclmulqdq.odin
2022-05-29 13:50:54 +01:00
Jeroen van Rijn
136d50a745
Fix SDK detection if no SDK installed.
2022-05-29 14:48:44 +02:00
gingerBill
babfba5e8f
Add rdtsc.odin
2022-05-29 13:48:20 +01:00
gingerBill
846f8377b2
Add fxsr.odin
2022-05-29 13:44:00 +01:00
gingerBill
77d4409549
Add adx.odin
2022-05-29 13:40:16 +01:00
gingerBill
7f3540b7f5
Add abm.odin
2022-05-29 13:36:55 +01:00
gingerBill
3ad2cde833
Add amd64 specific instructions
2022-05-29 13:34:59 +01:00
gingerBill
910799cc5f
Add cpu_features for core:simd/x86
2022-05-28 15:54:41 +01:00
Jeroen van Rijn
6c0192083e
Merge pull request #1812 from wjlroe/os-exists-for-darwin
...
[os] Darwin: Add os.exists()
2022-05-28 16:45:48 +02:00
gingerBill
c60d7842cd
Remove old code
2022-05-28 15:41:27 +01:00
gingerBill
d7eaf0f87b
Add intrinsics.x86_cpuid and intrinsics.x86_xgetbv
2022-05-28 15:41:11 +01:00
William Roe
bb4329711c
[os] Darwin: Add os.exists()
2022-05-28 15:21:07 +01:00
gingerBill
618d3bf62f
Improve vector comparison == != for horizontal reduction
2022-05-28 13:42:58 +01:00
Jeroen van Rijn
cf8a4b9812
Don't crash if SDK not found during ENV fallback.
2022-05-28 13:52:56 +02:00
gingerBill
4db533ff71
Add ssse3 support
2022-05-27 23:07:33 +01:00
Jeroen van Rijn
f28e3276e7
One more change.
2022-05-28 00:02:49 +02:00
gingerBill
026540040d
Add SSE3 support
2022-05-27 23:00:52 +01:00
gingerBill
8518d3b232
Rename to non_temporaral_*
2022-05-27 22:57:16 +01:00
gingerBill
1c1f5e2231
Complete SSE2
2022-05-27 22:56:11 +01:00
Jeroen van Rijn
bdedfb1071
Merge pull request #1805 from WalterPlinge/find-vs-winsdk-env
...
Find MSVC compiler and Windows SDK using environment variables
2022-05-27 23:54:53 +02:00
Jeroen van Rijn
92ed9e0b94
Refactor Walter's PR.
2022-05-27 23:48:31 +02:00
gingerBill
5c10b35df7
Fix sqrt for simd
2022-05-27 22:26:04 +01:00
Jeroen van Rijn
0668811397
Merge branch 'master' into find-vs-winsdk-env
2022-05-27 21:37:36 +02:00
Jeroen van Rijn
6bb6344208
Merge pull request #1810 from Kelimion/ms_craziness
...
Additional cleanup of microsoft_craziness.h.
2022-05-27 21:05:10 +02:00