[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <166396243656.2664601.3410906576496436654.b4-ty@chromium.org>
Date: Fri, 23 Sep 2022 12:47:19 -0700
From: Kees Cook <keescook@...omium.org>
To: linux-kernel@...r.kernel.org, andriy.shevchenko@...ux.intel.com,
Jason@...c4.com, Andrew Morton <akpm@...ux-foundation.org>
Cc: Kees Cook <keescook@...omium.org>
Subject: Re: [PATCH v2] minmax: clamp more efficiently by avoiding extra comparison
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
Powered by blists - more mailing lists