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

Support atomic types #1009

Open
16 of 20 tasks
joshlf opened this issue Mar 3, 2024 · 0 comments
Open
16 of 20 tasks

Support atomic types #1009

joshlf opened this issue Mar 3, 2024 · 0 comments

Comments

@joshlf
Copy link
Member

joshlf commented Mar 3, 2024

Progress

  • Clarify atomic bit validity rust-lang/rust#121943
  • Trait implementations
    • AtomicBool
      • KnownLayout
      • TryFromBytes / FromZeros
      • IntoBytes
      • Unaligned
    • AtomicU8, AtomicI8
      • KnownLayout
      • TryFromBytes / FromZeros / FromBytes
      • IntoBytes
      • Unaligned
    • AtomicUN / AtomicIN (N > 8)
      • KnownLayout
      • TryFromBytes / FromZeros / FromBytes
      • IntoBytes
    • AtomicPtr
      • KnownLayout
      • TryFromBytes / FromZeros
  • Support platforms for which target_has_atomics is spuriously false (see below)

Details

target_has_atomics

On some platforms, cfg(target_has_atomics) is disabled despite atomics support. For example, thumbv6m-none-eabi supports AtomicU32 but cfg(target_has_atomic = "32") is false on that platform. We will be able to support these cases once cfg(target_has_atomic_load_store) is stabilized.

joshlf added a commit that referenced this issue Mar 3, 2024
joshlf added a commit that referenced this issue Mar 3, 2024
joshlf added a commit that referenced this issue Mar 3, 2024
joshlf added a commit that referenced this issue Mar 3, 2024
joshlf added a commit that referenced this issue Mar 4, 2024
joshlf added a commit that referenced this issue Mar 4, 2024
github-merge-queue bot pushed a commit that referenced this issue Mar 4, 2024
joshlf added a commit that referenced this issue Mar 7, 2024
Makes progress on #1009. This commit doesn't implement all traits for
`AtomicPtr<T>`, so there's more work to do.
joshlf added a commit that referenced this issue Mar 7, 2024
Makes progress on #1009. This commit doesn't implement all traits for
`AtomicPtr<T>`, so there's more work to do.
github-merge-queue bot pushed a commit that referenced this issue Mar 7, 2024
Makes progress on #1009. This commit doesn't implement all traits for
`AtomicPtr<T>`, so there's more work to do.
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

No branches or pull requests

1 participant