| * bitops.h: Bit string operations on the m68k |
| #include <linux/config.h> |
| #include <asm/byteorder.h> |
| extern void set_bit(int nr, volatile void *addr); |
| extern void clear_bit(int nr, volatile void *addr); |
| extern void change_bit(int nr, volatile void *addr); |
| extern int test_and_set_bit(int nr, volatile void *addr); |
| extern int test_and_clear_bit(int nr, volatile void *addr); |
| extern int test_and_change_bit(int nr, volatile void *addr); |
| * ffs: find first bit set. This is defined the same way as |
| * the libc and compiler builtin ffs routines, therefore |
| * differs in spirit from the above ffz (man ffs). |
| extern __inline__ int ffs(int x) |
| #define __ffs(x) (ffs(x) - 1) |
| #endif /* _M68K_BITOPS_H */ |