diff options
| author | 2025-08-08 10:52:09 +0800 | |
|---|---|---|
| committer | 2025-08-18 17:01:32 -0400 | |
| commit | 27b16364ea126dc74105f151e9f64ac9e06eb268 (patch) | |
| tree | 376dc72a810a09f68d624e5c1197ed405768d231 /scripts/Makefile.thinlto | |
| parent | drm/amd/display: Use swap() to simplify code (diff) | |
drm/amd/display: replace min/max nesting with clamp()
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 <zhao.xichao@vivo.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
