Re:Std: Clamp generates less efficient assembly than std:min...
by x1f604 on Thursday January 18, 2024 @04:10AM
(#39039633)
Based on my reading of cppreference, it is required to return negative zero when you do std::clamp(-0.0f, +0.0f, +0.0f) because when v compares equal to lo and hi the function is required to return v, which the official std::clamp does but my incorrect clamp doesn't.
[ Parent
| on HN ]
There are no comments on this comment yet.