Skip to content
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

compiler-rt: Add the __atomic family of builtins #4924

Closed
wants to merge 1 commit into from

Conversation

LemonBoy
Copy link
Contributor

@LemonBoy LemonBoy commented Apr 3, 2020

The implementation was checked against a few files using std::atomic and
compiled using zig c++.

The results are ok on ARM32 and mipsel.

No 128 bit variants yet, I prefer to add those if/when they're effectively spotted in the wild.

I had to cut down the comptime trickery because it became a mess pretty quickly, feel free to re-add some bits as/if needed.

Refer to this GCC page when reviewing.

Closes #4887

The implementation was checked against a few files using std::atomic and
compiled using zig c++.

Closes ziglang#4887
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add atomic load functions to compiler-rt
1 participant