gingerBill
cde6a2f7a5
Make simd_shuffle act closer to swizzle
2022-05-26 00:36:24 +01:00
gingerBill
c2f5cbdeb4
Allow integer vectors in select
2022-05-25 23:49:23 +01:00
gingerBill
8e57511ffa
Minor clean up
2022-05-25 23:42:25 +01:00
gingerBill
12d19d21c4
Document simd stuff in intrinsics.odin
2022-05-25 23:40:59 +01:00
gingerBill
7002c94a63
Add intrinsics.simd_select
2022-05-25 23:34:41 +01:00
gingerBill
57e69ea392
Add comments
2022-05-25 23:24:42 +01:00
gingerBill
140c00aa0c
intrinsics.simd_shuffle
2022-05-25 23:01:33 +01:00
gingerBill
63d6c08d90
Add raw_simd_data
2022-05-25 22:09:38 +01:00
gingerBill
10e4de3c01
Add intrinsics.simd_reduce_*
2022-05-25 22:04:47 +01:00
gingerBill
8ac12886ed
Add core:simd
2022-05-25 21:30:10 +01:00
gingerBill
d8e77cd738
Add #optional_ok to dynlib.symbol_address
2022-05-25 11:53:32 +01:00
gingerBill
95d4ce4aa3
Fix lib_unix.odin
2022-05-25 11:46:26 +01:00
gingerBill
39393cca92
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-05-25 11:44:05 +01:00
gingerBill
acadbe050c
Make core:dynlib use the private interface convention of other packages
2022-05-25 11:43:56 +01:00
William Roe
54a326f046
[os] Darwin,FreeBSD,OpenBSD: Rename os.getenv to os.get_env
...
Make os.get_env consistent across Unixes
This matches the function name and API from env_windows.odin and os_linux.odin, which should be the same everywhere. Meaning:
* named get_env and not getenv
* return a string (empty if the environment variable is not found)
* accept a default value parameter for the allocator (defaulting to context.allocator)
* calls lookup_env which returns an extra found boolean value
This is so that you don't have to write platform/OS conditionals when getting environment variable values from the stdlib os.get_env/getenv function.
2022-05-23 13:48:55 +01:00
gingerBill
3ec70c5517
Merge functionality of #maybe with the standard 'union' functionality
2022-05-23 12:04:19 +01:00
gingerBill
8c1499dbc2
Make raw_data return [^]T types
2022-05-23 11:48:05 +01:00
gingerBill
7d2eedee73
Unify raw_data in core:mem with core:runtime
2022-05-23 11:47:12 +01:00
Cedric Hutchings
f25a3f2a7d
Add enums for getting Scancodes from WM_KEYDOWN
...
https://docs.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input
2022-05-22 15:34:49 -04:00
gingerBill
5609221831
Merge pull request #1792 from jasonKercher/os2_linux
...
Os2 linux
2022-05-22 17:18:28 +01:00
gingerBill
577fa2d29b
Update time procedures for js targets
2022-05-21 16:35:06 +01:00
gingerBill
10f1d8c604
Fix typo
2022-05-21 13:38:38 +01:00
gingerBill
dfbe68bcfe
Begin to add support for experimental wasm64
2022-05-21 13:30:43 +01:00
gingerBill
3049e07f72
Add mem.DEFAULT_PAGE_SIZE
2022-05-21 13:30:09 +01:00
gingerBill
e48f41165c
Begin work on Atomics for wasm32 (wait and notify intrinsics)
2022-05-21 12:58:48 +01:00
Tetralux
06884da42b
[path/filepath] Change join() to take a []string instead of varargs
...
This makes passing an allocator easier, as you no longer have to resort to
named arguments:
Before:
`join(a, b, c)` became `join(elems={a, b, c}, allocator=ally)`
After:
`join({a, b, c})` becomes `join({a, b, c}, ally)`
2022-05-21 04:48:06 +00:00
Jeroen van Rijn
e85f1dd9fb
Fix is* proc in libc.
2022-05-20 20:00:27 +02:00
Jeroen van Rijn
db8d119cad
Fix Windows os.make_directory.
2022-05-20 19:15:13 +02:00
gingerBill
223897d224
Fix typo
2022-05-18 12:30:44 +01:00
Tetralux
57167be2a6
[os] Linux: os.unset_env()
2022-05-18 07:12:30 +00:00
gingerBill
0cc67ff5e3
Add a return value to mem.zero_item and mem.zero_slice which is the same as the input
2022-05-17 22:42:37 +01:00
gingerBill
a86574da84
Use RtlWaitOnAddress to allow for a i64 sized duration rather than u32
2022-05-17 22:24:18 +01:00
jason
5a6836ab99
match user.odin and env.odin to master
2022-05-16 15:28:56 -04:00
jason
43432f92ec
fix git dummy move
2022-05-16 15:21:36 -04:00
jason
d1499f3f78
make -vet happy
2022-05-16 13:57:12 -04:00
jason
fff23e2bbb
merge from upstream and convert to ^File types
2022-05-16 13:49:57 -04:00
gingerBill
33895b6d92
Convert all uses of *_from_slice to *_from_bytes where appropriate
2022-05-16 01:43:43 +01:00
gingerBill
e10105a780
Correct logic for tracking allocator proc for freeing a nil pointer
2022-05-15 23:50:51 +01:00
gingerBill
5451c9672d
Fix dynamic_pool_destroy
2022-05-15 23:48:11 +01:00
gingerBill
4eba2bb8d9
Add _system_random for Darwin
2022-05-15 23:46:32 +01:00
gingerBill
2a58bceb56
Add rand.init_as_system to allow for system-level based random number generation
2022-05-15 23:43:20 +01:00
gingerBill
fdcf08410c
Add Gompertz Distribution
2022-05-15 23:03:01 +01:00
gingerBill
5142955f00
Add more distributions
2022-05-15 22:58:39 +01:00
gingerBill
500150b12a
Correct log normal
2022-05-15 22:52:11 +01:00
gingerBill
50ddd8dd26
Fix typo
2022-05-15 22:45:05 +01:00
gingerBill
6c6de2a07d
Move distributions to a separate file
2022-05-15 22:20:25 +01:00
gingerBill
01912b6ba5
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-05-15 21:53:21 +01:00
gingerBill
be2c7b5c9b
Add numerous different random distribution procedures
2022-05-15 21:53:16 +01:00
gingerBill
ed60ed3bae
Merge pull request #1789 from Tetralux/os-patch
...
[os] Linux: Add os.exists(), os.get_env(), os.lookup_env(), os.set_env()
2022-05-15 20:49:55 +01:00
Tetralux
b5b329378f
[os] Linux: Add os.exists(), os.get_env(), os.lookup_env(), os.set_env()
...
exists() does the access() syscall.
Renames getenv() to get_env() to match Windows.
2022-05-14 20:14:10 +00:00