Commit Graph

4236 Commits

Author SHA1 Message Date
hikari
3c6cc575c6 sys/windows: add a couple of constants 2022-06-10 21:17:27 +03:00
hikari
88e9eb7d0c sys/windows: add functions and constants 2022-06-09 17:44:51 +03:00
hikari
d19fc54c3d sys/windows: add macro 2022-06-08 21:18:11 +03:00
ftphikari
5d4291d9fa Merge branch 'odin-lang:master' into master 2022-06-08 19:55:42 +03:00
hikari
b70cd03e9e sys/windows: add interfaces from shobjidl_core.h 2022-06-08 19:38:12 +03:00
hikari
e91e5e1fe9 sys/windows: fix formatting 2022-06-07 20:16:32 +03:00
hikari
ae57a49915 sys/windows: fix file picker dialog 2022-06-07 17:59:15 +03:00
Despacito696969
a343fb171d Fixed slice.is_sorted_cmp 2022-06-07 14:07:19 +02:00
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
Dale Weiler
a996cfc536 fix 2022-06-04 04:47:52 -04:00
Dale Weiler
c1d55b9296 add max heap implementation to slice package 2022-06-04 04:31:55 -04:00
Totoki Kei
5c18cca1ca [core:testing] add global_fail_timeout_thread nil check
Fixed an issue where test would always fail unless set_fail_timeout was called.
2022-06-04 12:21:20 +09:00
JungerBoyo
78e6cd0c60 front() and back()
based on pop_front(), pop_back()
2022-06-04 00:12:34 +02:00
hikari
176954a6d8 sys/windows: add several functions and constants 2022-06-03 22:12:43 +03:00
JungerBoyo
ad6b3bd95f unset function
unset function, clear single bits
2022-06-03 15:53:14 +02:00
Josh Engler
762895bc45 - Added EnumDisplaySettingsW and friends.
- Added additional file access/security/sharing attributes
2022-06-03 07:40:45 -04:00
hikari
592e9afa5f sys/windows: add RegSetValueExW 2022-06-03 07:57:21 +03:00
hikari
a2e0373934 sys/windows: add registry functions and create winerror.odin 2022-06-03 06:44:42 +03:00
gingerBill
fb49841b1d Remove strings dependency from core:sys/windows 2022-06-02 13:02:16 +01:00
gingerBill
01ea0d6f1e Merge branch 'master' of https://github.com/odin-lang/Odin 2022-06-02 12:11:29 +01:00
gingerBill
bb7f291f5f Remove simd_rem; Disallow simd_div for integers 2022-06-02 12:10:43 +01:00
Ian Lilley
dda2ed290a tidying up Query_Info return value when not in query features 2022-06-01 22:40:39 -04:00
Ian Lilley
ee9908b09e Reserve more space when exceeding, not meeting, capacity 2022-06-01 22:01:00 -04: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 ..= 2022-06-01 11:08:19 +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
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
51707032d1 Add SSE4.1 2022-05-30 15:17:02 +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
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
gingerBill
0ccbea17aa Add pclmulqdq.odin 2022-05-29 13:50:54 +01: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
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
4db533ff71 Add ssse3 support 2022-05-27 23:07:33 +01: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