lkml.org 
[lkml]   [2022]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] minmax: clamp more efficiently by avoiding extra comparison
On Fri, Sep 23, 2022 at 5:12 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> 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@zx2c4.com> 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

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