Page MenuHomeFreeBSD

powerpc: Use builtins for fls/flsl
ClosedPublic

Authored by jhibbits on Nov 13 2019, 2:01 AM.
Tags
None
Referenced Files
F148563907: D22340.diff
Wed, Mar 18, 7:10 PM
Unknown Object (File)
Thu, Mar 12, 1:26 PM
Unknown Object (File)
Thu, Mar 12, 5:03 AM
Unknown Object (File)
Wed, Mar 11, 11:40 PM
Unknown Object (File)
Thu, Mar 5, 12:51 PM
Unknown Object (File)
Wed, Feb 25, 3:49 AM
Unknown Object (File)
Mon, Feb 23, 12:54 PM
Unknown Object (File)
Sat, Feb 21, 2:36 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

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 27484
Build 25716: arc lint + arc unit