Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
bitfield.h File Reference

Go to the source code of this file.

Macros

#define UData(Data)   ((unsigned long) (Data))
 
#define FIELD(val, vmask, vshift)   (((val) & ((UData(1) << (vmask)) - 1)) << (vshift))
 
#define FMASK(vmask, vshift)   (((UData(1) << (vmask)) - 1) << (vshift))
 

Macro Definition Documentation

#define FIELD (   val,
  vmask,
  vshift 
)    (((val) & ((UData(1) << (vmask)) - 1)) << (vshift))

Definition at line 21 of file bitfield.h.

#define FMASK (   vmask,
  vshift 
)    (((UData(1) << (vmask)) - 1) << (vshift))

Definition at line 22 of file bitfield.h.

#define UData (   Data)    ((unsigned long) (Data))

Definition at line 16 of file bitfield.h.