Commit Graph

15213 Commits

Author SHA1 Message Date
Colin Davidson
0a102bd757 shuffle to Kern_Return 2025-07-29 11:52:58 -07:00
Colin Davidson
fe2b48dec4 enum pass 2025-07-29 11:48:58 -07:00
Colin Davidson
b5629aeed9 copy-paste typo fix 2025-07-28 16:34:53 -07:00
Colin Davidson
1a9b128bfc update linux-arm to use the asm intrin for freq 2025-07-28 16:32:10 -07:00
Colin Davidson
76b00c046b arm64 has an invariant tsc too 2025-07-28 15:30:24 -07:00
Colin Davidson
1848e0df05 use the correct frequency for the arm tsc timer 2025-07-28 15:10:42 -07:00
Colin Davidson
b88f9194d0 Merge remote-tracking branch 'live/master' into macharena 2025-07-28 14:24:46 -07:00
gingerBill
be3006dbf2 Merge pull request #5507 from Paul-Andre/fix-issue-5474
Fix issue 5474
2025-07-28 11:42:09 +01:00
Paul-Andre Henegar
93a39affd1 Fix issue 5474
The fix was adding `is_constant = false;`

I also removed the unnecessary check regarding the first element of the
BitSet, since it's checked inside the loop, and also fixed a typo in the
message.
2025-07-28 01:42:19 -04:00
Jeroen van Rijn
a93d3503b1 Merge pull request #5499 from Kelimion/fix-5498
Fix #5498
2025-07-25 12:09:34 +02:00
Jeroen van Rijn
3a7e4873cd Fix #5498
Also:
- Expands `tests/core/hash`
- Fixes bug found in `#hash(s, "murmur64")`
2025-07-25 12:00:24 +02:00
Jeroen van Rijn
315cd51f76 Merge pull request #5491 from Feoramund/buddy-2
Fix Linux-specific optimized test failure
2025-07-22 17:01:13 +02:00
Feoramund
a0efdf26a6 mem: Clarify Buddy_Allocator requirements 2025-07-22 10:52:55 -04:00
Feoramund
58f32cd690 Fix Linux-specific optimized test failure
The stack was not aligned as expected for `buddy_allocator_init` when
`-o:speed` was enabled, making this a test failure that only appeared
with optimizations enabled.

The data is now aligned specifically, as it should be.
2025-07-22 10:40:16 -04:00
gingerBill
19a075211f Merge pull request #5442 from jon-lipstate/table_lookup
table lookup simd intrinsic
2025-07-22 11:14:54 +01:00
gingerBill
513e6daace Merge pull request #5081 from Lperlind/vet-explicit-allocators
Add -vet-explicit-allocators
2025-07-22 11:06:12 +01:00
gingerBill
e2b75d2add Merge pull request #5473 from harold-b/hb.subtarget-enhancements
Check for invalid subtargets and add "ios" pseudo subtarget
2025-07-22 11:01:50 +01:00
Harold Brenes
7c917d56e9 Check for invalid subtargets.
- Add 'ios' pseudo-subtarget which triggets with either iPhone or iPhoneSimulator subtargets.

- Treat an explicit 'default' subtarget as exclusive only to the default subtarget, not an other platform-compatible subtargets.

- 'generic' continues to resolve to true for any platform-compatible subtarget as it names appears to imply such behavior.
2025-07-20 14:35:06 -04:00
gingerBill
b095dd71cb Merge branch 'master' of https://github.com/odin-lang/Odin 2025-07-20 15:32:28 +01:00
gingerBill
0dd0a3813b Fix very subtle bug in virtual.memory_block_alloc 2025-07-20 15:32:22 +01:00
gingerBill
98c2425fe0 Merge pull request #5467 from harold-b/hb.ios-subtarget-rename-iphone
Rename `iOS` subtarget to `iPhone`, add `ODIN_PLATFORM_SUBTARGET_IOS`
2025-07-20 13:22:47 +01:00
Laytan
a90ee53866 Merge pull request #5485 from poops/sdl3-image-save-functions-return-bool
SDL_image save functions should return bool
2025-07-20 13:18:09 +02:00
Laytan
a658cc5ef6 Merge pull request #5482 from sergeypdev/master
Disable filepath/match.odin and filepath/walk.odin compilation on js targets
2025-07-20 13:17:10 +02:00
Laytan
089d8a229c Merge pull request #5479 from wisonye/master
Fixed Index 0 is out of range 0..<0' when using '-default-to-nil-allocator' for FreeBSD/OpenBSD/NetBSD/Linux
2025-07-20 13:12:45 +02:00
Jeroen van Rijn
50358380ae Merge pull request #5484 from laytan/hash-bytes-to-buffer-up-to-digest-size
crypto/hash: hash_bytes_to_buffer slice result to digest size
2025-07-20 03:14:54 +02:00
brandon
e7e16f063e SDL_image save functions should return bool 2025-07-19 18:51:51 -04:00
Laytan
164bb52212 crypto/hash: hash_bytes_to_buffer slice result to digest size 2025-07-19 19:50:32 +02:00
sergeypdev
2fc8ca6cf5 Disable filepath/match.odin and filepath/walk.odin compilation on js
targets
2025-07-19 16:44:45 +04:00
WisonYe
4ccdb48044 Fixed the build check: ('arg' declared but not used) against the '-default-to-nil-allocator' fix for FreeBSD/OpenBSD/NetBSD/Linux. 2025-07-19 12:29:03 +12:00
WisonYe
b9f08412ae Fixed Index 0 is out of range 0..<0' when using '-default-to-nil-allocator' for Linux/OpenBSD/NetBSD. 2025-07-19 12:03:22 +12:00
WisonYe
26e4104ac9 Fixed 'Odin/core/os/os_linux.odin(1104:7) Index 0 is out of range 0..<0' when using '-default-to-nil-allocator'. 2025-07-19 11:59:18 +12:00
WisonYe
80cd080175 Fixed 'Odin/core/os/os_freebsd.odin(971:7) Index 0 is out of range 0..<0' when using '-default-to-nil-allocator'. 2025-07-19 11:54:17 +12:00
gingerBill
a19e7845b1 Merge pull request #5472 from harold-b/hb.auto_objc_name
Allow objective-c procedures to have their `@objc_name` attribute inferred
2025-07-17 21:01:28 +01:00
gingerBill
28053a0ff0 Merge pull request #5475 from connnnal/iunknown-uuid
Add IUnknown UUID
2025-07-17 11:59:42 +01:00
gingerBill
1ef0f1be6b Merge pull request #5476 from jon-lipstate/card_hint
add did you mean for card/len
2025-07-17 11:36:53 +01:00
Jon Lipstate
6c81df82a6 cleanup langauge / errors about table vs swizzle 2025-07-16 23:43:41 -07:00
Jon Lipstate
3e5de5f705 add did you mean for card/len 2025-07-16 23:23:11 -07:00
Jon Lipstate
ecd41b155d rename table_lookup to runtime_swizzle 2025-07-16 21:54:24 -07:00
connnnal
f6993a8205 Add IUnknown UUID 2025-07-17 05:00:20 +01:00
Harold Brenes
edc01293b2 Allow objective-c procedures to have their @objc_name attribute inferred.
The `@objc_name` is automatically inferred if it is not specified and
the procedure name is prefixed with type name specified in `@objc_type`,
followed by an `_`. What followed the `_` is interpreted as the `@objc_name`.
2025-07-16 17:14:57 -04:00
gingerBill
e8b2f1eeaa Fix indentation 2025-07-16 15:25:05 +01:00
gingerBill
e5baf483fd Update vendor:kb_text_shape to v1.03 2025-07-16 15:14:41 +01:00
gingerBill
e21892ce89 Merge pull request #5471 from harold-b/hb.fix_objc_class_method_impl
Fix @objc_implement methods not respecting @objc_is_class_method
2025-07-16 11:38:02 +01:00
Harold Brenes
efe4f40974 Fix @objc_implement methods not respecting @objc_is_class_method
Fix incorrect type encoding for objc_class
2025-07-15 23:47:13 -04:00
Harold Brenes
63b9cb18ef Missing rename in panic string 2025-07-14 22:32:06 -04:00
Harold Brenes
bab4ce11fc Rename iOS subtarget to iPhone for consistency.
Add `ODIN_PLATFORM_SUBTARGET_IOS` builtin constant which evaluated to
`true` when the platform is `Darwin` and the subtarget it either `iPhone` or `iPhoneSimulator`
2025-07-14 21:55:28 -04:00
Laytan
204edd0fc2 Merge pull request #5459 from harold-b/hb.simplify-import-odin-ext-folders-check
Use `fi.is_dir` instead of `path_is_directory()` during directory check when collecting .odin files
2025-07-14 21:59:05 +02:00
Laytan
67c90b5d9e Merge pull request #5466 from harold-b/hb.fix-ios-simulator-triplet
Fix correct versioned target triplet for iphonesimulator subtarget
2025-07-14 20:51:00 +02:00
Harold Brenes
77e5c71414 Fix correct versioned target triplet for iphonesimulator subtarget
- Always set the `-m*-version-min` linker flag for non-macOS Darwin subtargets
2025-07-14 14:28:07 -04:00
gingerBill
02e5dc9948 Merge pull request #5465 from harold-b/hb.ios-min-version-linker-fix
Provide default minimum version for iOS and apply its target triplet.
2025-07-14 18:11:28 +01:00