[libc] Reduce size of memset()
authorMichael Brown <mcb30@ipxe.org>
Tue, 17 Feb 2015 00:42:28 +0000 (00:42 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 17 Feb 2015 00:42:28 +0000 (00:42 +0000)
commit21d3d5c47c6479b2aadce3b03e298e72712f47f5
treeeb5cbbd9100ff3fcb9e113ae40436ed0b04bc3b4
parent7867e48cee73fdd78967441da6c568e4e8116ac9
[libc] Reduce size of memset()

As with memcpy(), we can reduce the code size (by an average of 0.2%)
by giving the compiler more visibility into what memset() is doing,
and by avoiding the "rep" prefix on short fixed-length sequences of
string operations.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/include/bits/string.h