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

Go to the source code of this file.

Macros

#define HOSTWDSZ   32
 
#define Bitfield_extract(start, length, object)
 
#define Bitfield_signed_extract(start, length, object)   ((int)((object) << start) >> (HOSTWDSZ - (length)))
 
#define Bitfield_mask(start, len, object)   ((object) & (((unsigned)-1 >> (HOSTWDSZ-len)) << (HOSTWDSZ-start-len)))
 
#define Bitfield_deposit(value, start, len, object)
 

Macro Definition Documentation

#define Bitfield_deposit (   value,
  start,
  len,
  object 
)
Value:
object = \
((object) & ~(((unsigned)-1 >> (HOSTWDSZ-len)) << (HOSTWDSZ-start-len))) | \
(((value) & ((unsigned)-1 >> (HOSTWDSZ-len))) << (HOSTWDSZ-start-len))

Definition at line 63 of file fpbits.h.

#define Bitfield_extract (   start,
  length,
  object 
)
Value:
((object) >> (HOSTWDSZ - (start) - (length)) & \
((unsigned)-1 >> (HOSTWDSZ - (length))))

Definition at line 53 of file fpbits.h.

#define Bitfield_mask (   start,
  len,
  object 
)    ((object) & (((unsigned)-1 >> (HOSTWDSZ-len)) << (HOSTWDSZ-start-len)))

Definition at line 60 of file fpbits.h.

#define Bitfield_signed_extract (   start,
  length,
  object 
)    ((int)((object) << start) >> (HOSTWDSZ - (length)))

Definition at line 57 of file fpbits.h.

#define HOSTWDSZ   32

Definition at line 40 of file fpbits.h.