Re: [PATCH v2] minmax: clamp more efficiently by avoiding extra comparison
From: Kees Cook
Date: Fri Sep 23 2022 - 15:48:43 EST
On Fri, 23 Sep 2022 17:40:01 +0200, Jason A. Donenfeld wrote:
> Currently the clamp algorithm does:
>
> if (val > hi)
> val = hi;
> if (val < lo)
> val = lo;
>
> [...]
Applied (with the little changes mentioned in v2 thread) to
for-next/hardening, thanks!
[1/1] minmax: clamp more efficiently by avoiding extra comparison
https://git.kernel.org/kees/c/97dd4f05a2ce
--
Kees Cook