Go to the documentation of this file.
7 #ifndef _SPARC64_BITOPS_H
8 #define _SPARC64_BITOPS_H
10 #ifndef _LINUX_BITOPS_H
11 #error only <linux/bitops.h> can be included directly
14 #include <linux/compiler.h>
15 #include <asm/byteorder.h>
20 extern void set_bit(
unsigned long nr,
volatile unsigned long *
addr);
26 #define smp_mb__before_clear_bit() barrier()
27 #define smp_mb__after_clear_bit() barrier()
35 extern int ffs(
int x);
36 extern unsigned long __ffs(
unsigned long);
46 extern unsigned long __arch_hweight64(
__u64 w);
47 extern unsigned int __arch_hweight32(
unsigned int w);
48 extern unsigned int __arch_hweight16(
unsigned int w);
49 extern unsigned int __arch_hweight8(
unsigned int w);