Yawning Angel
391b3090c9
core/crypto/siphash: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
d50380709d
core/crypto/sha3: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
14a46c6d5e
core/crypto/sha2: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
b4e3da84c5
core/crypto/sha1: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
9d627e453a
core/crypto/md5: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
d6e0e5d3f6
core/crypto/blake2: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Laytan Laats
9078ddaf5a
Allow larger thread poly data
...
The poly data currently has the restriction of being less than a
pointer's size, but there is much more space in the `Thread.user_args`
array which can be utilized, this commit allows you to pass types that are
larger than pointer length as long as the total size of the poly data is
less than that of the `Thread.user_args`.
2023-11-15 19:08:03 +01:00
Jeroen van Rijn
8028033513
Merge pull request #2957 from laytan/no-crt-and-compile-assembly-on-darwin
...
-no-crt on darwin_arm64 and assembly compilation on darwin
2023-11-15 18:46:35 +01:00
Laytan Laats
6b9202dfbf
-no-crt and assembly compilation on darwin
2023-11-15 18:06:27 +01:00
Jeroen van Rijn
04c928fb9e
Clear up core:container/queue
2023-11-15 15:20:52 +01:00
Yawning Angel
1b3fb11a31
core/encoding/endian: Tidy up a comment (NFC)
2023-11-14 23:07:51 +09:00
Yawning Angel
b30ceab864
core/encoding/endian: Use intrinsics for loads/stores
...
- Use `intrinsics.unaligned_load`/`intrinsics.unaligned_store`
- Make all the routines contextless
- Add unchecked variants for code that "Knows What It Is Doing(TM)"
2023-11-14 23:07:51 +09:00
Jeroen van Rijn
3e1791aa5c
Fix typos
2023-11-13 20:54:19 +01:00
FourteenBrush
e0ac454ed0
Expose strings.ascii_set_* functions
2023-11-12 17:33:33 +01:00
Laytan Laats
bd19081543
fix nil exceptions with incomplete code parse
...
This makes the parser more fault tolerant because the different
parse_foo procs return nil when in an invalid state, which is fine most
of the time but when creating a node it would crash accessing its
position.
2023-11-12 01:53:14 +01:00
Jeroen van Rijn
dd9b0ae4e5
Make pow2_f{16,32,64} contextless for consistency.
2023-11-11 14:06:48 +01:00
Jeroen van Rijn
3b5d28f0ee
Merge pull request #2948 from flysand7/fix-do
...
[core]: Remove `do` keyword from the core library
2023-11-11 13:16:12 +01:00
flysand7
270348b112
[core]: Remove do keyword from the core library
2023-11-11 20:36:38 +11:00
flga
5a8da5dcdb
core:sys/linux: rename Perf_Read_Format_Flags
2023-11-10 19:41:01 +00:00
flga
6de2b7700f
core:sys/linux: make Perf_Read_Format a bitset
2023-11-10 12:58:53 +00:00
flysand7
4e145cf69c
[sys/linux]: Fix time(2) syscall not taking a pointer on ARM64
2023-11-10 08:32:49 +11:00
flysand7
341087a82b
[sys/linux]: Fix creat(2) syscall not returning file descriptor
2023-11-10 08:31:52 +11:00
flysand7
851fd1f8d1
Fix missing return statement
2023-11-10 08:30:38 +11:00
flysand7
ce43b04688
time on arm64
2023-11-10 05:33:25 +11:00
flysand7
ff1ab74b3c
[sys/linux]: Fix missing return; Remove TODO for select()
2023-11-10 05:24:24 +11:00
flysand7
aed67ba665
[sys/linux]: Fix arch-specific issues
2023-11-10 05:14:42 +11:00
Jeroen van Rijn
761a079789
Fix net.split_url
...
Resolves issue #2924
2023-11-09 16:56:54 +01:00
Laytan
fc6edf65d7
fix linux.accept, addrlen should be a pointer to the length instead of the length itself
2023-11-09 14:17:22 +01:00
flysand7
548ab2e1b6
[sys/linux]: utimensat takes array of two
2023-11-08 11:07:50 +11:00
flysand7
13a3c0e57c
[sys/linux]: Fix syscalls: lseek, preadv, pwritev; Make read*/write* syscalls take byte slice instead of generic slice
2023-11-08 11:01:28 +11:00
flga
4266a7c166
sys/linux: munmap was not using the correct syscall
2023-11-07 23:19:14 +00:00
Laytan Laats
e2cecafa66
allow integer verbs in fmt_bit_set
2023-11-07 21:09:42 +01:00
Divan Burger
c20839c461
Fix use of unitialized socket in socket_linux.odin#_dial_tcp_from_endpoint
2023-11-06 23:19:12 +02:00
Jeroen van Rijn
4cb0edc90b
Work around LLVM idiocy.
2023-11-04 22:42:32 +01:00
Jeroen van Rijn
6201280468
Add math.pow2_f{16,32,64}, fast floating point 2^x where x is an integer.
2023-11-04 22:14:44 +01:00
flysand7
4a4aca6829
[math]: Fix the doc comments on F64_* constants
2023-11-04 20:30:14 +11:00
flysand7
f26ed39e86
[sys/linux]: Fix compilation errors and -strict-style errors
2023-11-04 13:57:28 +11:00
flysand7
574d2baf09
[sys/linux]: Documentation improvements
2023-11-04 13:35:13 +11:00
flysand7
1e622979f8
[sys/linux]: Add more syscalls
2023-11-04 12:46:45 +11:00
jakubtomsu
1f969fdc75
Fix tabs
2023-11-03 15:06:46 +01:00
gingerBill
e206d6ba35
Add allocator parameter to fmt's aprint and aprintln
2023-11-03 13:26:33 +00:00
flysand7
7faa146004
WIP
2023-11-03 00:56:20 +11:00
gingerBill
ef5eb4b612
A docs.odin explaining what are the required entities in core:runtime by the compiler
2023-11-01 13:59:39 +00:00
Karl Zylinski
75cb2c68cc
Cleanup of json.clone_value
2023-11-01 00:57:27 +01:00
Karl Zylinski
942e91f94c
Added temp allocator guard to json.marshal, in case we temp alloc when sorting map kesy
2023-11-01 00:46:01 +01:00
Karl Zylinski
d8f06ed557
Reversed order of sort_maps_by_key check in marshal.odin to make PR comparison clearer.
2023-11-01 00:37:27 +01:00
Karl Zylinski
a73ff00b02
Indentation fix.
2023-11-01 00:33:59 +01:00
Karl Zylinski
a58a08c0c3
JSON: Option to sort marshaled maps before outputting. Also added a json.clone_value proc
2023-11-01 00:23:17 +01:00
flysand7
2c9ef2e1bc
sys/linux: Fix EFAULT on recvfrom
2023-11-01 10:06:30 +11:00
jakubtomsu
5c533e477d
Fix indentation and style
2023-10-31 16:32:53 +01:00