]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5aef96efbfa22581ca39b03c1c485acce1657277
treea254ee00655f042c3dfaa2486a7ce8caa0767806
parent7c5fce75b628992e4467a1b2c419f14f8ab31be3
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