Skip to content

Implement atomic floats #2

Open
@lorentey

Description

@lorentey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions