Commit Graph

7546 Commits

Author SHA1 Message Date
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
Jeroen van Rijn
48c25fe76e Merge pull request #6467 from Carlyle-Foster/master
added get_page_size() to `core:mem/virtual`
2026-03-24 15:16:34 +01:00
Laytan
d90cc4e3b6 json: fix user unmarshaller example (#6468)
* json: fix user unmarshaller example

- Returning `.None` in the custom unmarshaler is wrong, should be `nil`
- `advance_token` has to be called

Besides the fixes I made it an actual example that will show up on the package docs
2026-03-23 21:28:47 +01:00
Carlyle
d6a47f5e99 added get_page_size() to core:mem/virtual 2026-03-23 11:43:13 -07:00
Jeroen van Rijn
72f9d55266 Merge pull request #6456 from imp0s5ible/imp-file-mapping-fix
Fix #6455
2026-03-20 16:41:06 +01:00
imp0s5ible
e2bb7d70af Make map_file_from_path use the open flags
map_file_from_path now passes the appropriate flags on to os.open
instead of always calling it with os.O_RDWR.
It will no longer try to open a file with write permissions if the user
didn't request write access to the file mapping (or vice-versa).
2026-03-20 15:21:12 +01:00
gingerBill
5e6e1c1e75 Add gethostname to ws2_32.odin 2026-03-20 11:44:10 +00:00
Yawning Angel
a171746a15 core/math/rand: Disable LLVM vectorization of xoshiro on Intel
LLVM tries really hard to vectorize this when it is a terrible idea,
when `-microarch:native` is specified on modern processors.  Not doing
so is a 2.5->3x performance gain.
2026-03-19 19:25:23 +09:00
pawelt
911f00521c Handle OOM error in path_linux / _get_working_directory() 2026-03-17 14:37:22 +01:00
Jeroen van Rijn
efccc9c87f Merge pull request #6434 from Yawning/feature/arm-hw-sha512
core/crypto/sha2: Add Aarch64 SHA512 acceleration
2026-03-16 20:51:52 +01:00
Yawning Angel
36a3f691c1 core/crypto/sha2: Add Aarch64 SHA512 acceleration 2026-03-17 04:39:15 +09:00
Laytan
99dffb344a Merge pull request #6424 from andzdroid/patch-4
encoding/cbor: fix order-dependent partial unmarshals
2026-03-16 15:17:57 +01:00
Yawning Angel
ccb56de19a core/crypto/sha2: Add scaffolding for SHA512 acceleration 2026-03-16 16:05:21 +09:00
Yawning Angel
a030fb6596 core/crypto/sha2: Remove the broken Intel intrinsic kludge 2026-03-16 15:52:59 +09:00
Yawning Angel
9051f5a075 core/simd/x86: Fix _mm_blend_epi16 2026-03-16 15:52:59 +09:00
gingerBill
20dcc8fd80 Remove use of @(init) for checking if Windows has long path support and check on first usage instead 2026-03-15 19:09:45 +00:00
gingerBill
5f5c19fa2c Add deprecation notice to small_array/doc.odin 2026-03-15 18:58:27 +00:00
gingerBill
4b95e8a040 Add generic count of arrays to to doc-format 2026-03-15 18:18:02 +00:00
gingerBill
55f398b734 Add #no_bounds_check to appropriate procedures 2026-03-15 16:00:40 +00:00
gingerBill
7207b545e6 Merge pull request #6406 from odin-lang/bill/fixed-capacity-dynamic-array
Fixed Capacity Dynamic Arrays
2026-03-15 15:31:31 +00:00
Jeroen van Rijn
66be1a799b Fix #6425 2026-03-15 15:25:54 +01:00
andzdroid
f123fb1e91 encoding/cbor: fix order-dependent partial unmarshals 2026-03-15 13:20:57 +00:00
gingerBill
2f8da5ec67 Add fixed capacity dynamic array to the doc-format 2026-03-15 11:55:04 +00:00
gingerBill
c6772dfd06 Merge branch 'master' into bill/fixed-capacity-dynamic-array 2026-03-15 11:41:01 +00:00
Barinzaya
e5c7ab0660 Add fmt field tags to core:container/small_array.Small_Array.
This enables fmt (and other packages that use it, like log) to format
Small_Arrays with only the used portion of the array.
2026-03-15 07:16:02 -04:00
Jeroen van Rijn
fcac43e08f Merge pull request #6420 from mlgudi/fix-math-big-powmod-int-mul-high
Fix two bugs in `core:math/big` modular exponentiation
2026-03-15 11:26:28 +01:00
Jeroen van Rijn
f82fbc9405 -vet-tabs 2026-03-15 11:06:22 +01:00
Yawning Angel
9194b599ec core/crypto/sha2: Add ARMv8 SHA256 acceleration 2026-03-15 18:44:29 +09:00
mlgudi
76da2c3233 mul_high: fix aliasing bug when dest overlaps input 2026-03-15 02:47:26 +00:00
mlgudi
84b38810f1 powmod: fix Montgomery branch calling Barrett implementation 2026-03-15 02:46:30 +00:00
gingerBill
59bc428782 Update core/odin/ast/ast.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2026-03-14 16:22:12 +00:00
gingerBill
7b0121756c Update core/encoding/cbor/marshal.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2026-03-14 16:22:01 +00:00
gingerBill
ee667ec02b Update core/reflect/reflect.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2026-03-14 16:21:38 +00:00
Yawning Angel
3a59e8c849 core/simd/arm: Add the SHA intrinsics
The SHA3 ones aren't in the developer.arm.com documentation.
2026-03-14 14:05:15 +09:00
Yawning Angel
adb2890d2b core/simd/arm: Formating fixes (NFC) 2026-03-14 14:05:15 +09:00
gingerBill
411e85f02e Fix copy-and-paste doc typo 2026-03-13 13:37:34 +00:00
Yawning Angel
3139b7e755 core/crypto/aes: Migrate to generic SIMD + HW AES 2026-03-13 22:01:16 +09:00
Yawning Angel
e09923f585 core/crypto/deoxysii: Migrate to generic SIMD + HW AES 2026-03-13 22:01:16 +09:00
Yawning Angel
df1a966100 core/crypto/aegis: Migrate to generic SIMD + HW AES 2026-03-13 22:01:16 +09:00
Yawning Angel
6aeed0e20e core/crypto/_aes/hw: Initial import 2026-03-13 22:01:16 +09:00
Yawning Angel
48b1f3b830 core/simd/arm: Initial import 2026-03-13 21:00:42 +09:00
Yawning Angel
004a65e382 core/crypto/_aes/hw_intel: Remove a copy of zero_explicit 2026-03-13 21:00:42 +09:00