hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/arch/sh/include/asm/bitops-op32.h
....@@ -16,11 +16,9 @@
1616 #define BYTE_OFFSET(nr) ((nr) % BITS_PER_BYTE)
1717 #endif
1818
19
-#define IS_IMMEDIATE(nr) (__builtin_constant_p(nr))
20
-
2119 static inline void __set_bit(int nr, volatile unsigned long *addr)
2220 {
23
- if (IS_IMMEDIATE(nr)) {
21
+ if (__builtin_constant_p(nr)) {
2422 __asm__ __volatile__ (
2523 "bset.b %1, @(%O2,%0) ! __set_bit\n\t"
2624 : "+r" (addr)
....@@ -37,7 +35,7 @@
3735
3836 static inline void __clear_bit(int nr, volatile unsigned long *addr)
3937 {
40
- if (IS_IMMEDIATE(nr)) {
38
+ if (__builtin_constant_p(nr)) {
4139 __asm__ __volatile__ (
4240 "bclr.b %1, @(%O2,%0) ! __clear_bit\n\t"
4341 : "+r" (addr)
....@@ -64,7 +62,7 @@
6462 */
6563 static inline void __change_bit(int nr, volatile unsigned long *addr)
6664 {
67
- if (IS_IMMEDIATE(nr)) {
65
+ if (__builtin_constant_p(nr)) {
6866 __asm__ __volatile__ (
6967 "bxor.b %1, @(%O2,%0) ! __change_bit\n\t"
7068 : "+r" (addr)