7587 Commits

Author SHA1 Message Date
gingerBill
4558356bcf Merge pull request #6567 from Faker-09/print_double_flush
Remove extra 'defer bufio.writer_flush' from fprint procs
2026-04-14 11:02:43 +01:00
blob1807
912a2d78c9 [core:test] Windows Fix stop reason being wrong for OOB 2026-04-14 19:11:42 +10:00
Shane Shrybman
38a2e7f259 Remove extra 'defer bufio.writer_flush' from print procs 2026-04-13 13:09:02 -04:00
gingerBill
a1100166ac Merge pull request #6562 from heavyrain266/ioring
IoRing API bindings
2026-04-13 14:26:32 +01:00
gingerBill
f252704e4e Merge pull request #6563 from FourteenBrush/patch-6
Win32: ensure `make_*` style bounds traps are handled in test runner `expect_signal`
2026-04-13 14:26:30 +01:00
FourteenBrush
742cd5bc77 Add EXCEPTION_ARRAY_BOUNDS_EXCEEDED to win32 testing.expect_signal handler 2026-04-13 14:43:08 +02:00
Ignacy Koper
68c50e845f core:sys/windows: Added IoRing API bindings
Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-04-13 14:02:42 +02:00
Krzesimir Nowak
000e92d632 core/container/xar: Fix a typo in example 2026-04-12 22:47:08 +02:00
Laytan
ecbb20475e nbio(posix): handle EOF in poll (#6556) 2026-04-12 11:48:59 +02:00
gingerBill
9c8199feab Merge pull request #6537 from RaphGL/freebsd-ioctl
added ioctl and stdio FILENO constants to core:sys/freebsd
2026-04-11 21:34:55 +01:00
Laytan Laats
1cb272b8e6 testing: fix doc formatting? 2026-04-11 20:08:38 +02:00
David Bader
1cf49db865 Fix missing argument in adjtimex syscall in core:sys/linux (#6502) 2026-04-11 20:03:35 +02:00
alektron
98d6b3bc85 Undo change from #6398 and fix arena overcommit bug in the correct place; 2026-04-10 23:53:41 +02:00
Jeroen van Rijn
c36bd4f858 Merge pull request #6549 from jakubtomsu/faster-linalg
Faster linalg `dot`, `cross3`, `floor`, `ceil` and add `trunc`
2026-04-10 19:06:54 +02:00
jakubtomsu
e15230c194 remove force_inline from vector_dot 2026-04-10 17:21:03 +02:00
jakubtomsu
d5e4e61c1c implement floor, ceil and trunc with SIMD 2026-04-10 17:10:24 +02:00
jakubtomsu
47371791b3 faster vector_dot and vector_cross3 2026-04-10 17:08:40 +02:00
Shane Shrybman
f4aa97f89a Fix os._volume_name_len to handle paths of purely separators. Also, fix '\h\s' handling 2026-04-09 23:26:37 -04:00
RaphGL
f4590df071 fixed wrong fd number for stderr 2026-04-09 21:04:48 -01:00
gingerBill
c87d1a3cf6 Comment out the uncompleted stuff 2026-04-08 15:42:40 +01:00
gingerBill
2414f428a5 Add core:simd/x86/avx.odin 2026-04-08 15:37:46 +01:00
RaphGL
33832e1f8e added ioctl and stdio FILENO constants to core:sys/freebsd 2026-04-08 13:06:53 -01:00
Jeroen van Rijn
e558f9852e Add comment to os.exit 2026-04-08 10:17:43 +02:00
Shane Shrybman
08ae38b9aa Fix filepath.dir to return '.' for an empty path 2026-04-07 11:31:33 -04:00
Shane Shrybman
c4893f617a Fix typo in filepath.dir description 2026-04-07 11:23:20 -04:00
gingerBill
6f7226e692 Add intrinsics.simd_pairwise_(add|sub) 2026-04-07 15:45:50 +01:00
gingerBill
6e09ce9a04 intrinsics.to_bits_signed; simd.signbit 2026-04-07 15:25:41 +01:00
gingerBill
5de18d30f3 Add intrinsics.simd_approx_recip and intrinsics.simd_approx_recip_sqrt 2026-04-07 14:35:04 +01:00
gingerBill
885db93e20 Add intrinsics.simd_sums_of_n 2026-04-07 13:18:03 +01:00
gingerBill
ac1b5aea0f Add intrinsics.simd_odd_even; More core:simd operations 2026-04-07 11:35:20 +01:00
Jeroen van Rijn
b3c1725025 [core:terminal] Remove superfluous @(init) and @(fini) 2026-04-04 14:38:27 +02:00
juaum
d06572c831 core/os: Add dir procedure 2026-04-04 10:13:19 +02:00
gingerBill
039c438af2 Fix possible utf16 out of bounds issue 2026-04-02 12:54:07 +01:00
gingerBill
1d8c44a98c Fix minor issues with Windows bindings 2026-04-02 12:52:17 +01:00
gingerBill
40e03765a4 Merge branch 'master' of https://github.com/odin-lang/Odin 2026-04-02 10:25:23 +01:00
gingerBill
70c4f4bc45 Fix read_reg_string which was using the wrong size in bytes for the resulting buffer 2026-04-02 10:25:19 +01:00
Stefan Stefanov
b52cc45053 core/crypto/aes: Fix src size check
Fixed a faulty check that would check the `dst` twice instead of
checking the `src` and `dst` input parameters in `encrypt_ecb()` &
`decrypt_ecb()`.
2026-04-01 23:05:29 +03:00
Jeroen van Rijn
fbf0c06cf4 Temporarily revert 6425 fix. 2026-04-01 18:58:16 +02:00
Jeroen van Rijn
74c5039168 Revert "Fix #6424"
This reverts commit 66be1a799b.
2026-04-01 18:41:39 +02:00
gingerBill
4dceffd049 When parsing an incorrect for loop, remove assert
// caused by this:
```
for a
b, c := d()
```
2026-03-30 11:50:59 +01:00
imp0s5ible
0d8fe07388 Fix array-bounds-exceeded error
We didn't consider empty base/target strings and accessed the ith
element unconditionally. We now check to make sure `i` is in range.
2026-03-29 21:24:57 +02:00
imp0s5ible
1f2d978396 Fix #6495 - Handle starting separator during name comparison
During the loop comparing file/directory names, the starting character
in both will be a path separator in most cases.
Since a naive string equality will regard forward slashes and
backslashes as different, we must specially handle the first character
and exclude it from the equality comparison if necessary.
2026-03-29 21:11:22 +02:00
jakubtomsu
e7c29e21ee remove Fixed_Byte_Buffer 2026-03-26 19:40:14 +01:00
jakubtomsu
382ca331be runtime align_forward procs as source of truth 2026-03-26 19:38:49 +01:00
Mortimer Snerd
2363f85944 Fix for corner case in the scratch allocator.
The scratch allocator could erroneously return a slice
overlapping previously allocated memory for allocation
requests that were smaller than the arena size, but larger
than the amount of free space left in the arena.

- fix the check in mem::scratch_alloc_bytes_non_zeroed
  that wasn't routing the request to the backup allocator.
- added concrete reproduction test under tests/issues.
2026-03-25 19:33:17 -04:00
gingerBill
9379273d20 Remove deprecated append_* procedures in core:strconv 2026-03-25 11:41:05 +00:00
gingerBill
8bac2e30c6 Remove deprecated procedures in core:container/queue 2026-03-25 11:40:26 +00:00
gingerBill
7e9c14e6f3 Remove deprecated procedure 2026-03-25 11:38:38 +00:00
gingerBill
8f4b720e90 Add contextless to appropriate procedures in core:math/fixed 2026-03-25 11:38:14 +00:00
Jeroen van Rijn
2d77303b27 Revert "added get_page_size() to core:mem/virtual" 2026-03-24 16:16:24 +01:00