FD.io VPP  v18.01.1-37-g7ea3975
Vector Packet Processing
types.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define log2_uword_bits   6
 
#define clib_address_bits   64
 
#define uword_bits   (1 << log2_uword_bits)
 
#define uword_to_pointer(u, type)   ((type) (clib_address_t) (u))
 
#define clib_mem_unaligned(pointer, type)   (((struct { CLIB_PACKED (type _data); } *) (pointer))->_data)
 
#define clib_mem_aligned(addr, type, align)
 

Typedefs

typedef char i8
 
typedef short i16
 
typedef unsigned char u8
 
typedef unsigned short u16
 
typedef int i128
 
typedef unsigned int u128
 
typedef int i32
 
typedef long i64
 
typedef unsigned int u32
 
typedef unsigned long u64
 
typedef i64 word
 
typedef u64 uword
 
typedef u64 clib_address_t
 
typedef word any
 
typedef double f64
 
typedef float f32
 
typedef __complex__ float cf32
 
typedef __complex__ double cf64
 
typedef f64 fword
 

Functions

static uword pointer_to_uword (const void *p)
 

Macro Definition Documentation

#define clib_address_bits   64

Definition at line 85 of file types.h.

#define clib_mem_aligned (   addr,
  type,
  align 
)
Value:
(((struct { \
type _data \
__attribute__ ((aligned (align), packed)); \
} *) (addr))->_data)
vhost_vring_addr_t addr
Definition: vhost-user.h:83

Definition at line 160 of file types.h.

#define clib_mem_unaligned (   pointer,
  type 
)    (((struct { CLIB_PACKED (type _data); } *) (pointer))->_data)

Definition at line 155 of file types.h.

#define log2_uword_bits   6

Definition at line 84 of file types.h.

#define uword_bits   (1 << log2_uword_bits)

Definition at line 102 of file types.h.

#define uword_to_pointer (   u,
  type 
)    ((type) (clib_address_t) (u))

Definition at line 136 of file types.h.

Typedef Documentation

typedef word any

Definition at line 139 of file types.h.

typedef __complex__ float cf32

Definition at line 145 of file types.h.

typedef __complex__ double cf64

Definition at line 146 of file types.h.

Definition at line 121 of file types.h.

typedef float f32

Definition at line 143 of file types.h.

typedef double f64

Definition at line 142 of file types.h.

typedef f64 fword

Definition at line 149 of file types.h.

typedef int i128

Definition at line 62 of file types.h.

vslo vsro vslo i16

Definition at line 46 of file types.h.

vslo i32

Definition at line 81 of file types.h.

typedef long i64

Definition at line 82 of file types.h.

typedef char i8

Definition at line 45 of file types.h.

typedef unsigned int u128

Definition at line 63 of file types.h.

typedef unsigned short u16

Definition at line 57 of file types.h.

typedef unsigned int u32

Definition at line 88 of file types.h.

typedef unsigned long u64

Definition at line 89 of file types.h.

typedef unsigned char u8

Definition at line 56 of file types.h.

typedef u64 uword

Definition at line 112 of file types.h.

typedef i64 word

Definition at line 111 of file types.h.

Function Documentation

static uword pointer_to_uword ( const void *  p)
inlinestatic

Definition at line 131 of file types.h.

+ Here is the caller graph for this function: