[Instrumentation] Use std::clamp (NFC)
The use of std::clamp should be safe here. MinRZ is at most 32, while kMaxRZ is 1 << 18, so we have MinRZ <= kMaxRZ, avoiding the undefind behavior of std::clamp.
Loading
Please sign in to comment
The use of std::clamp should be safe here. MinRZ is at most 32, while kMaxRZ is 1 << 18, so we have MinRZ <= kMaxRZ, avoiding the undefind behavior of std::clamp.