XenevaOS
Loading...
Searching...
No Matches
Macros
bits.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BITS_PER_LONG   32
 
#define __GENMASK(h, l)    (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
 
#define __GENMASK_ULL(h, l)    (((~0ULL) << (l)) & (~0ULL >> (63 - (h))))
 
#define DMA_BIT_MASK(n)   (((n) == 64) ? ~0ULL : ((1ULL << (n)) - 1))
 

Macro Definition Documentation

◆ __GENMASK

#define __GENMASK (   h,
  l 
)     (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))

◆ __GENMASK_ULL

#define __GENMASK_ULL (   h,
  l 
)     (((~0ULL) << (l)) & (~0ULL >> (63 - (h))))

◆ BITS_PER_LONG

#define BITS_PER_LONG   32

◆ DMA_BIT_MASK

#define DMA_BIT_MASK (   n)    (((n) == 64) ? ~0ULL : ((1ULL << (n)) - 1))