summaryrefslogtreecommitdiffstats
path: root/Documentation/kobject.txt
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2006-03-25 12:08:19 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-25 17:23:01 +0100
commitd74beb9f33a5f16d2965f11b275e401f225c949d (patch)
tree48f851753ebe9c9c8dd701dcdd0c5e1d7c629579 /Documentation/kobject.txt
parent[PATCH] Check if cpu can be onlined before calling smp_prepare_cpu() (diff)
downloadlinux-d74beb9f33a5f16d2965f11b275e401f225c949d.tar.xz
linux-d74beb9f33a5f16d2965f11b275e401f225c949d.zip
[PATCH] Use unsigned int types for a faster bsearch
This patch avoids arithmetic on 'signed' types that are slower than 'unsigned'. This saves space and cpu cycles. size of kernel/sys.o before the patch (gcc-3.4.5) text data bss dec hex filename 10924 252 4 11180 2bac kernel/sys.o size of kernel/sys.o after the patch text data bss dec hex filename 10903 252 4 11159 2b97 kernel/sys.o I noticed that gcc-4.1.0 (from Fedora Core 5) even uses idiv instruction for (a+b)/2 if a and b are signed. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/kobject.txt')
0 files changed, 0 insertions, 0 deletions