i386: Move all simple string operations out of line
authorAndi Kleen <ak@suse.de>
Sat, 21 Jul 2007 15:09:59 +0000 (17:09 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 01:37:08 +0000 (18:37 -0700)
commitb520b85a963bf7b14b9614579aff14558d7ee264
treea254ee00655f042c3dfaa2486a7ce8caa0767806
parentaac57f81eb16d56afb5bd5a31ff325b5d1615580
i386: Move all simple string operations out of line

The compiler generally generates reasonable inline code for the simple
cases and for the rest it's better for code size for them to be out of line.
Also there they can be potentially optimized more in the future.

In fact they probably should be in a .S file because they're all pure
assembly, but that's for another day.

Also some code style cleanup on them while I was on it (this seems
to be the last untouched really early Linux code)

This saves ~12k text for a defconfig kernel with gcc 4.1.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/lib/Makefile
arch/i386/lib/string.c [new file with mode: 0644]
include/asm-i386/string.h