HomeFreeBSD

lib/libc/amd64/string: implement strnlen(3) trough memchr(3)

Description

lib/libc/amd64/string: implement strnlen(3) trough memchr(3)

Now that we have an optimised memchr(3), we can use it to implement
strnlen(3) with better perofrmance.

Sponsored by: The FreeBSD Foundation
Approved by: mjg
MFC after: 1 week
MFC to: stable/14
Differential Revision: https://reviews.freebsd.org/D41598

Details