On 12/08/2025 07:50, Xichao Zhao wrote:
The clamp() macro explicitly expresses the intent of constraining
a value within bounds.Therefore, replacing min(max(a, b), c) with
clamp(val, lo, hi) can improve code readability.
Signed-off-by: Xichao Zhao <redacted>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>