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

Implement atomic floats #2

Open
lorentey opened this issue Oct 1, 2020 · 0 comments
Open

Implement atomic floats #2

lorentey opened this issue Oct 1, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@lorentey
Copy link
Member

lorentey commented Oct 1, 2020

Implement AtomicValue conformances for Float, Double and Float16. Requirements/constraints:

  • compareExchange must compare the underlying encoded bit patterns rather than performing actual floating point comparisons. (I.e., it must consider negative zero different from positive zero, it must consider a NaN value equal to itself, etc.)
  • We should provide as many direct operations as llvm/clang exposes. It would be nice to at least provide an atomic addition.
  • We probably don't need/want an AtomicFloatingPoint protocol.
@lorentey lorentey added the enhancement New feature or request label Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant