Page MenuHomeFreeBSD

libkern: remove old ffs/fls routines
ClosedPublic

Authored by mhorne on Jun 21 2023, 4:39 PM.
Tags
None
Referenced Files
F150492395: D40699.id124241.diff
Wed, Apr 1, 4:44 PM
Unknown Object (File)
Feb 21 2026, 5:16 PM
Unknown Object (File)
Feb 21 2026, 5:16 PM
Unknown Object (File)
Feb 20 2026, 12:35 PM
Unknown Object (File)
Feb 8 2026, 9:13 AM
Unknown Object (File)
Feb 7 2026, 9:16 PM
Unknown Object (File)
Jan 31 2026, 6:40 AM
Unknown Object (File)
Dec 24 2025, 10:13 PM
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