]> git.baikalelectronics.ru Git - kernel.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)
commit8027c890a063ea6c82d46f7088891524592a80d3
tree948857a7a45bbe5cd4bd654d4523ddda26cd3144
parente4db6973dbf69b1ba93d864e1d352c32b24f1304
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