Skip to content

Commit 35bb8dd

Browse files
committed
ARC: document the macro generated bitops for grep
Signed-off-by: Vineet Gupta <[email protected]>
1 parent 339b07f commit 35bb8dd

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

arch/arc/include/asm/bitops.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,18 @@ static inline int __test_and_##op##_bit(unsigned long nr, volatile unsigned long
175175
return (old & (1 << nr)) != 0; \
176176
}
177177

178-
#define BIT_OPS(op, c_op, asm_op) \
179-
BIT_OP(op, c_op, asm_op) \
180-
TEST_N_BIT_OP(op, c_op, asm_op) \
181-
__BIT_OP(op, c_op, asm_op) \
178+
#define BIT_OPS(op, c_op, asm_op) \
179+
\
180+
/* set_bit(), clear_bit(), change_bit() */ \
181+
BIT_OP(op, c_op, asm_op) \
182+
\
183+
/* test_and_set_bit(), test_and_clear_bit(), test_and_change_bit() */\
184+
TEST_N_BIT_OP(op, c_op, asm_op) \
185+
\
186+
/* __set_bit(), __clear_bit(), __change_bit() */ \
187+
__BIT_OP(op, c_op, asm_op) \
188+
\
189+
/* __test_and_set_bit(), __test_and_clear_bit(), __test_and_change_bit() */\
182190
__TEST_N_BIT_OP(op, c_op, asm_op)
183191

184192
BIT_OPS(set, |, bset)

0 commit comments

Comments
 (0)