/* asm/bitops.h for Linux/CRIS * * TODO: asm versions if speed is needed * * All bit operations return 0 if the bit was cleared before the * operation and != 0 if it was not. * * bit 0 is the LSB of addr; bit 32 is the LSB of (addr+1). */ #ifndef _CRIS_BITOPS_H #define _CRIS_BITOPS_H /* Currently this is unsuitable for consumption outside the kernel. */ #ifdef __KERNEL__ #ifndef _LINUX_BITOPS_H #error only can be included directly #endif #include #include #include #include #include /* * Since we define it "external", it collides with the built-in * definition, which doesn't have the same semantics. We don't want to * use -fno-builtin, so just hide the name ffs. */ #define ffs(x) kernel_ffs(x) #include #include #include #include #include #include #include #include #include #endif /* __KERNEL__ */ #endif /* _CRIS_BITOPS_H */