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, May 8, 8:07 AM
Unknown Object (File)
Tue, May 7, 4:35 PM
Unknown Object (File)
Thu, May 2, 5:46 PM
Unknown Object (File)
Tue, Apr 30, 8:10 PM
Unknown Object (File)
Tue, Apr 30, 6:37 PM
Unknown Object (File)
Tue, Apr 30, 6:37 PM
Unknown Object (File)
Tue, Apr 30, 4:05 PM
Unknown Object (File)
Mar 11 2024, 8:34 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