:gb: Optimised clamp method