lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 21 Dec 2017 15:11:30 +0100
From:   Peter Zijlstra <>
To:     David Laight <David.Laight@...LAB.COM>
Cc:     'Crt Mori' <>, Jonathan Cameron <>,
        Ingo Molnar <>,
        Andrew Morton <>,
        Kees Cook <>,
        Rusty Russell <>,
        Ian Abbott <>,
        Larry Finger <>,
        Niklas Soderlund <>,
        Thomas Gleixner <>,
        Krzysztof Kozlowski <>,
        Masahiro Yamada <>,
        "" <>,
        "" <>,
        Joe Perches <>
Subject: Re: [PATCH v10 1/3] lib: Add strongly typed 64bit int_sqrt

On Thu, Dec 21, 2017 at 01:56:55PM +0000, David Laight wrote:
> > This part above looks like FLS
> It also does the rest of the required shifts.

Still, fls() + shift is way faster on hardware that has an fls

Writing out that binary search doesn't make sense.

Powered by blists - more mailing lists