Page MenuHomeFreeBSD

libc: Use musl's optimized strchr, strchrnul, strcspn
ClosedPublic

Authored by emaste on Oct 20 2018, 10:26 PM.

Details

Summary

libc: Use musl's optimized strchr, strchrnul, strcspn

Parentheses added to HASZERO macro to avoid a GCC warning.

Obtained from: musl (snapshot at commit c648cefb)
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Looks fine from PoV of libc integration. I did not looked at the algorithms.

This revision is now accepted and ready to land.Oct 21 2018, 12:07 AM

Is this waiting on anything specific? By this point I woud only check for updates and get this in.