Gradient Shaping Beyond Clipping: A Functional Perspective on Update Magnitude Control