Use frei0r built-in CLAMP macro