Messages in this thread | | | From | Kees Cook <> | Subject | Re: [PATCH v2] minmax: clamp more efficiently by avoiding extra comparison | Date | Fri, 23 Sep 2022 12:47:19 -0700 |
| |
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
| |