Page MenuHomeFreeBSD

powerpc: Use builtins for fls/flsl
ClosedPublic

Authored by jhibbits on Nov 13 2019, 2:01 AM.
Tags
None
Referenced Files
F158040577: D22340.diff
Wed, May 27, 8:13 PM
Unknown Object (File)
Mon, May 25, 3:57 AM
Unknown Object (File)
Thu, May 14, 10:57 AM
Unknown Object (File)
Wed, May 6, 11:42 PM
Unknown Object (File)
Thu, Apr 30, 9:09 AM
Unknown Object (File)
Apr 27 2026, 12:53 PM
Unknown Object (File)
Apr 26 2026, 4:14 PM
Unknown Object (File)
Apr 26 2026, 4:04 AM
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