]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: make 'constant_test_bit()' take an unsigned bit number
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Jan 2009 20:49:50 +0000 (12:49 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Jan 2009 20:49:50 +0000 (12:49 -0800)
commitc4295fbb6048d85f0b41c5ced5cbf63f6811c46c
tree948857a7a45bbe5cd4bd654d4523ddda26cd3144
parente245b80c8357bf375f15c5f3b05ef8ae35e4fbc8
x86: make 'constant_test_bit()' take an unsigned bit number

Ingo noticed that using signed arithmetic seems to confuse the gcc
inliner, and make it potentially decide that it's all too complicated.

(Yeah, yeah, it's a constant. It's always positive. Still..)

Based-on: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/bitops.h