[MIPS] Use MIPS R2 instructions for bitops.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 16 Feb 2007 17:18:50 +0000 (17:18 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 18 Feb 2007 21:31:35 +0000 (21:31 +0000)
commit102fa15c3f14565f2edb9f08f08ea3f2bf123dc9
treee4b753ec35e1cf543ab580df9b36b03086f9909c
parent151fd6acd94e12ef3a7d5fa0911a2590690c493f
[MIPS] Use MIPS R2 instructions for bitops.

Add R2 optimized variants of clear_bit, set_bit and test_and_clear_bit.
With gcc 4.1.1 this saves 1592 bytes on a defconfig (minus IPv6) kernel.
Turns out that R2 bitop instructions are no gain for the other bitop
functions.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/bitops.h