Page MenuHomeFreeBSD

powerpc: Use builtins for fls/flsl
ClosedPublic

Authored by jhibbits on Nov 13 2019, 2:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 9, 8:22 PM
Unknown Object (File)
Wed, Jan 8, 11:59 PM
Unknown Object (File)
Mon, Dec 23, 1:50 PM
Unknown Object (File)
Sep 23 2024, 6:31 AM
Unknown Object (File)
Sep 18 2024, 9:15 AM
Unknown Object (File)
Sep 8 2024, 11:20 PM
Unknown Object (File)
Sep 5 2024, 8:04 PM
Unknown Object (File)
Sep 1 2024, 8:57 PM
Subscribers

Details

Summary

There's no need to use the fallback fls() and flsl() libkern functions
when the PowerISA includes instructions that already do the bulk of the
work. Take advantage of this through the GCC builtins builtin_clz()
and
builtin_clzl().

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable