-
Notifications
You must be signed in to change notification settings - Fork 2.1k
core/lib/atomic_c11: Add __atomic_test_and_set() #21883
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
Conversation
This adds a previously missing library implementation for `__atomic_test_and_set()`.
|
For reference: Test output in |
crasbe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't really comment about the changes themselves, sorry 😅
mguetschow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Straightforward addition, thanks! Just a question below.
GCC requires symbols to first be declared before they can be renamed. So we move the `#pragma redefine_extname` just to the bottom of the compilation unit. Co-authored-by: crasbe <crasbe@gmail.com> Co-authored-by: Mikolai Gütschow <mikolai.guetschow@tu-dresden.de>
2bead6b to
a32e108
Compare
mguetschow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! Trusting your testing :)
|
Is this a 2 ACK kind of PR? 🤔 |
|
Thx a lot ❤️ |
Contribution description
This adds a previously missing library implementation for
__atomic_test_and_set().Testing procedure
In
master:undefined reference to `__atomic_test_and_set'In this PR
{ "result" : 12302, "ticks" : 1300 }Issues/PRs references
None