NVIDIA / NVIDIA/cccl

Document the semantics of floating-point atomic fetch_min / fetch_max

Open
#1,014 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.