Page MenuHomeFreeBSD

libkern: remove old ffs/fls routines
ClosedPublic

Authored by mhorne on Jun 21 2023, 4:39 PM.
Tags
None
Referenced Files
F173861065: D40699.id.diff
Mon, Sep 28, 11:15 PM
Unknown Object (File)
Mon, Sep 28, 6:33 PM
Unknown Object (File)
Mon, Sep 21, 7:53 PM
Unknown Object (File)
Wed, Sep 2, 3:31 PM
Unknown Object (File)
Wed, Sep 2, 10:28 AM
Unknown Object (File)
Aug 25 2026, 10:15 PM
Unknown Object (File)
Aug 13 2026, 6:19 PM
Unknown Object (File)
Aug 11 2026, 2:47 AM
Subscribers
None

Details

Summary

These are poorly optimized (linear search), and we now prefer the
compiler builtin routines on all platforms. These files can be removed.

Note that we still have copies of these slow routines in libc, e.g.
lib/libc/string/ffsl.c.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable