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

<atomic>: ADL-proof implementation of atomic and atomic_ref #4221

Merged
merged 8 commits into from
Jan 17, 2024

Conversation

frederick-vs-ja
Copy link
Contributor

Towards #140.
(A little number of atomic-related changes were already done in #4138.)

Notes:

  1. __builtin_zero_non_value_bits is qualified due to a bug of MSVC (which was originally reported as DevCom-10527599, but soon considered as a duplicate of DevCom-10456452); other intrinsics are not qualified.
  2. _Atomic_address_as doesn't need to be qualified in some specializations because the passed argument is always an integer. There's a separated commit making _STD-qualification for _Atomic_address_as consistent.
  3. _Check_memory_order, _Check_store_memory_order, and _Check_load_memory_order are not qualified because the passed argument is always either unsigned int or memory_order. I'm not sure whether it would be better to qualify them.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner November 30, 2023 17:09
@StephanTLavavej StephanTLavavej self-assigned this Nov 30, 2023
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Nov 30, 2023
@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej
Copy link
Member

Thanks! I pushed a conflict-free merge with main and included a couple of headers.

@StephanTLavavej StephanTLavavej removed their assignment Jan 12, 2024
@StephanTLavavej StephanTLavavej self-assigned this Jan 17, 2024
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit ea783f8 into microsoft:main Jan 17, 2024
35 checks passed
@StephanTLavavej
Copy link
Member

☢️ 🛡️ 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants