Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
bitops.h File Reference
#include <linux/compiler.h>
#include <asm/alternative.h>

Go to the source code of this file.

Macros

#define BIT_64(n)   (U64_C(1) << (n))
 
#define BITOP_ADDR(x)   "=m" (*(volatile long *) (x))
 
#define ADDR   BITOP_ADDR(addr)
 
#define IS_IMMEDIATE(nr)   (__builtin_constant_p(nr))
 
#define CONST_MASK_ADDR(nr, addr)   BITOP_ADDR((void *)(addr) + ((nr)>>3))
 
#define CONST_MASK(nr)   (1 << ((nr) & 7))
 
#define smp_mb__before_clear_bit()   barrier()
 
#define smp_mb__after_clear_bit()   barrier()
 
#define test_bit(nr, addr)
 

Macro Definition Documentation

#define ADDR   BITOP_ADDR(addr)

Definition at line 36 of file bitops.h.

#define BIT_64 (   n)    (U64_C(1) << (n))

Definition at line 18 of file bitops.h.

#define BITOP_ADDR (   x)    "=m" (*(volatile long *) (x))

Definition at line 31 of file bitops.h.

#define CONST_MASK (   nr)    (1 << ((nr) & 7))

Definition at line 44 of file bitops.h.

#define CONST_MASK_ADDR (   nr,
  addr 
)    BITOP_ADDR((void *)(addr) + ((nr)>>3))

Definition at line 43 of file bitops.h.

#define IS_IMMEDIATE (   nr)    (__builtin_constant_p(nr))

Definition at line 42 of file bitops.h.

#define smp_mb__after_clear_bit ( )    barrier()

Definition at line 151 of file bitops.h.

#define smp_mb__before_clear_bit ( )    barrier()

Definition at line 150 of file bitops.h.

#define test_bit (   nr,
  addr 
)
Value:
(__builtin_constant_p((nr)) \
? constant_test_bit((nr), (addr)) \
: variable_test_bit((nr), (addr)))

Definition at line 345 of file bitops.h.