lkml.org 
[lkml]   [2022]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2] minmax: clamp more efficiently by avoiding extra comparison
Date
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

\
 
 \ /
  Last update: 2022-09-23 21:48    [W:0.109 / U:1.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site