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)
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
Unknown Object (File)
Sep 1 2024, 3:29 PM
Unknown Object (File)
Jul 13 2024, 7:06 PM
Unknown Object (File)
Jun 30 2024, 7:50 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