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)
Wed, Jul 30, 8:59 AM
Unknown Object (File)
Wed, Jul 9, 6:02 AM
Unknown Object (File)
Jul 1 2025, 11:06 PM
Unknown Object (File)
Jun 30 2025, 2:54 AM
Unknown Object (File)
Jun 27 2025, 3:37 AM
Unknown Object (File)
Jun 16 2025, 10:49 AM
Unknown Object (File)
Jun 2 2025, 5:12 AM
Unknown Object (File)
Jun 1 2025, 4:07 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