Re: [PATCH] minmax: clamp more efficiently by avoiding extra comparison
From: Jason A. Donenfeld
Date: Fri Sep 23 2022 - 11:15:00 EST
On Fri, Sep 23, 2022 at 5:12 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> On Fri, Sep 23, 2022 at 12:48:48PM +0200, Jason A. Donenfeld wrote:
> > On Fri, Sep 23, 2022 at 12:40 PM Jason A. Donenfeld <Jason@xxxxxxxxx> wrote:
>
> ...
>
> > both for the old code and for the new code, the result of lo>hi is
> > total nonsense:
>
> Exactly and my point is to add at least compile-time check for constants.
Cool okay. Rolling v2 now.
Jason