Skip to content

Support C11 atomics required by dav1d #814

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

thedataking
Copy link
Contributor

@thedataking thedataking commented Feb 6, 2023

@thedataking thedataking marked this pull request as draft February 6, 2023 06:31
@thedataking thedataking force-pushed the perl/c11_atomics branch 2 times, most recently from ce04e4e to d84fa89 Compare February 7, 2023 22:57
@thedataking thedataking requested a review from rinon March 6, 2023 22:30
Nugine added a commit to Nugine/c2rust that referenced this pull request Dec 8, 2024
chrysn added 2 commits June 27, 2025 16:44
As atomics are being implemented, these warnings are becoming wrong.
Any operations on atomics that stay unimplmented will be caught more
precisely at later translation stages.
@thedataking thedataking force-pushed the perl/c11_atomics branch 2 times, most recently from 0a86e71 to 1daaaab Compare June 28, 2025 01:28
Add support for:
__c11_atomic_compare_exchange_{strong,weak}
__c11_atomic_exhange
__c11_atomic_fetch_add
__c11_atomic_fetch_and
__c11_atomic_fetch_nand
__c11_atomic_fetch_or
__c11_atomic_fetch_sub
__c11_atomic_init
__c11_atomic_load
__c11_atomic_store

Variants of the above with explicit memory ordering are not supported.
@thedataking thedataking requested a review from kkysen June 28, 2025 02:32
@thedataking thedataking marked this pull request as ready for review June 28, 2025 02:33
@thedataking thedataking changed the title WIP: Support C11 atomics required by dav1d Support C11 atomics required by dav1d Jun 28, 2025
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.

3 participants