Document the semantics of floating-point atomic fetch_min / fetch_max
Open
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 486
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 295
Description
For floats, whether the operation is:
```cpp
std::max(old, new);
```
or
```cpp
std::max(new, old)
```
matters. We don't say, but we should say something about this at least.
Since we are doing a `old.max(new)`, I think we should document this as `std::max(old, new)` for consistency.
Contributor guide
Assessment
This issue has not been assessed yet.