Fast Comparison Use

MIN() and MAX() (std::min() and std::max()) calls have been replaced
with FASTMIN() and FASTMAX().