Re: [patch V4 part 4 03/24] lib/bsearch: Provide __always_inline variant

From: Andy Lutomirski
Date: Thu May 14 2020 - 00:58:47 EST


On Tue, May 5, 2020 at 7:15 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>
> From: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
>
> For code that needs the ultimate performance (it can inline the @cmp
> function too) or simply needs to avoid calling external functions for
> whatever reason, provide an __always_inline variant of bsearch().


Acked-by: Andy Lutomirski <luto@xxxxxxxxxx>

Although maybe a more explicit name (e.g. __inlined_bsearch()) would
be more clear?