Replace them with std::min, std::max, std::clamp.
enabled an automatic merge when the pipeline for f59d7915 succeeds
mentioned in commit 9ee82f55
merged