-
Notifications
You must be signed in to change notification settings - Fork 107
purego: Support 32 arguments on 64bit #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1c6b421
purego: support 32 args on unix platforms
tmc dd48b34
purego: extend high-arg ABI coverage
tmc 7711628
purego: use SyscallN for high-arg windows calls
tmc e4cd471
purego: define CDecl in one place
tmc a3f159c
cdecl: remove build tags
tmc 4f41479
purego: fix review follow-ups for 32-arg syscall
tmc 5b0e02b
purego: fix ppc64le callback float decoding
tmc dceb831
purego: remove dead syscall_64bit_fallback.go
tmc 091d916
purego: keep ppc64le on 15-arg ABI
tmc 2402f06
purego: rename syscall.go to syscall_64bit.go
tmc 475e000
purego: clean up syscall build tags
tmc 02d268b
purego: clean up build tags
tmc aa53ffc
purego: keep 64bit handling code in syscall.go
tmc 306800e
syscall: keep upstream build constraint
tmc dabbc2b
syscall: exclude ppc64le in build tags for syscall.go
tmc fa11290
syscall_ppc64le: omit windows GOOS check
tmc b9c5f0a
purego: address review feedback
tmc 5185f3f
syscall: fix gofmt formatting
tmc fb6bdb0
internal/cgo: support 32 args in cgo syscall path
tmc 1ef573c
internal/cgo: remove unused SyscallX wrapper
tmc 4830a63
purego: test ppc64le 16-argument limit
tmc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // SPDX-FileCopyrightText: 2026 The Ebitengine Authors | ||
|
|
||
| package purego | ||
|
|
||
| // CDecl marks a function as being called using the __cdecl calling convention as defined in | ||
| // the [MSDocs] when passed to NewCallback. It must be the first argument to the function. | ||
| // This is only useful on 386 Windows, but it is safe to use on other platforms. | ||
| // | ||
| // [MSDocs]: https://learn.microsoft.com/en-us/cpp/cpp/cdecl?view=msvc-170 | ||
| type CDecl struct{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.