[libc] Rewrite string functions
authorMichael Brown <mcb30@ipxe.org>
Mon, 16 Feb 2015 17:59:11 +0000 (17:59 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 16 Feb 2015 23:16:20 +0000 (23:16 +0000)
commit8ee39f7432e63c2382ab3e7d24e234310f4532c9
tree9261fe919a505f8f5d98e288f68ac99a6fd62c3c
parentb54167b8b6a35c7dab19bbe4b421d447036558d4
[libc] Rewrite string functions

Some of the C library string functions have an unknown provenance.
Reimplement all such functions to avoid potential licensing
uncertainty.

Remove the inline-assembler versions of strlen(), memswap(), and
strncmp(); these save a minimal amount of space (around 40 bytes in
total) and are not performance-critical.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/core/x86_string.c
src/arch/x86/include/bits/string.h
src/core/string.c
src/hci/strerror.c
src/include/string.h
src/include/strings.h