linux-sg2042/arch
Denys Vlasenko 9b706aee7d x86: trivial printk optimizations
In arch/x86/boot/printf.c gets rid of unused tail of digits: const char
*digits = "0123456789abcdefghijklmnopqrstuvwxyz"; (we are using 0-9a-f
only)

Uses smaller/faster lowercasing (by ORing with 0x20)
if we know that we work on numbers/digits. Makes
strtoul smaller, and also we are getting rid of

  static const char small_digits[] = "0123456789abcdefx";
  static const char large_digits[] = "0123456789ABCDEFX";

since this works equally well:

  static const char digits[16] = "0123456789ABCDEF";

Size savings:

$ size vmlinux.org vmlinux
   text    data     bss     dec     hex filename
 877320  112252   90112 1079684  107984 vmlinux.org
 877048  112252   90112 1079412  107874 vmlinux

It may be also a tiny bit faster because code has less
branches now, but I doubt it is measurable.

[ hugh@veritas.com: uppercase pointers fix ]

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-02-09 23:24:09 +01:00
..
alpha ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
arm ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
avr32 ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
blackfin ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
cris ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
frv ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
h8300 ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
ia64 ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
m32r ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
m68k ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
m68knommu ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
mips ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
mn10300 mn10300: add platform MTD support for the ASB2303 board 2008-02-08 09:22:30 -08:00
parisc ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
powerpc ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
ppc ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
s390 [S390] dynamic page tables. 2008-02-09 18:24:41 +01:00
sh ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
sparc ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
sparc64 ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
um uml: make mconsole_stack namespace-aware 2008-02-05 09:44:32 -08:00
v850 ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
x86 x86: trivial printk optimizations 2008-02-09 23:24:09 +01:00
xtensa ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00
Kconfig Move Kconfig.instrumentation to arch/Kconfig and init/Kconfig 2008-02-03 08:58:08 +01:00