coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
byteorder.h File Reference
#include <types.h>
Include dependency graph for byteorder.h:

Go to the source code of this file.

Macros

#define __BIG_ENDIAN   4321
 
#define PPC_BIT(bit)   (0x8000000000000000UL >> (bit))
 
#define PPC_BITMASK(bs, be)   ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs))
 
#define PPC_SHIFT(val, lsb)   (((uint64_t)(val)) << (63 - (lsb)))
 

Macro Definition Documentation

◆ __BIG_ENDIAN

#define __BIG_ENDIAN   4321

Definition at line 6 of file byteorder.h.

◆ PPC_BIT

#define PPC_BIT (   bit)    (0x8000000000000000UL >> (bit))

Definition at line 8 of file byteorder.h.

◆ PPC_BITMASK

#define PPC_BITMASK (   bs,
  be 
)    ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs))

Definition at line 9 of file byteorder.h.

◆ PPC_SHIFT

#define PPC_SHIFT (   val,
  lsb 
)    (((uint64_t)(val)) << (63 - (lsb)))

Definition at line 14 of file byteorder.h.