2 * bitops.h: Bit string operations on the m68k
8 #include <linux/config.h>
9 #include <asm/byteorder.h>
11 extern void set_bit(int nr, volatile void *addr);
12 extern void clear_bit(int nr, volatile void *addr);
13 extern void change_bit(int nr, volatile void *addr);
14 extern int test_and_set_bit(int nr, volatile void *addr);
15 extern int test_and_clear_bit(int nr, volatile void *addr);
16 extern int test_and_change_bit(int nr, volatile void *addr);
21 * ffs: find first bit set. This is defined the same way as
22 * the libc and compiler builtin ffs routines, therefore
23 * differs in spirit from the above ffz (man ffs).
25 extern __inline__ int ffs(int x)
53 #define __ffs(x) (ffs(x) - 1)
55 #endif /* __KERNEL__ */
57 #endif /* _M68K_BITOPS_H */