Re: [PATCH v2] minmax: clamp more efficiently by avoiding extra comparison

Kees Cook
2022-09-23T19:48:43Z

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