FD.io VPP  v21.06-3-gbb25fbf28
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 signed char i8
 
typedef signed short i16
 
typedef unsigned char u8
 
typedef unsigned short u16
 
typedef signed int i128
 
typedef unsigned int u128
 
typedef signed int i32
 
typedef signed 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

◆ clib_address_bits

#define clib_address_bits   64

Definition at line 84 of file types.h.

◆ clib_mem_aligned

#define clib_mem_aligned (   addr,
  type,
  align 
)
Value:
(((struct { \
type _data \
__attribute__ ((aligned (align), packed)); \
} *) (addr))->_data)

Definition at line 160 of file types.h.

◆ clib_mem_unaligned

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

Definition at line 155 of file types.h.

◆ log2_uword_bits

#define log2_uword_bits   6

Definition at line 80 of file types.h.

◆ uword_bits

#define uword_bits   (1 << log2_uword_bits)

Definition at line 102 of file types.h.

◆ uword_to_pointer

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

Definition at line 136 of file types.h.

Typedef Documentation

◆ any

typedef word any

Definition at line 139 of file types.h.

◆ cf32

typedef __complex__ float cf32

Definition at line 145 of file types.h.

◆ cf64

typedef __complex__ double cf64

Definition at line 146 of file types.h.

◆ clib_address_t

Definition at line 121 of file types.h.

◆ f32

typedef float f32

Definition at line 143 of file types.h.

◆ f64

typedef double f64

Definition at line 142 of file types.h.

◆ fword

typedef f64 fword

Definition at line 149 of file types.h.

◆ i128

typedef signed int i128

Definition at line 62 of file types.h.

◆ i16

vslo vsro vslo i16

Definition at line 46 of file types.h.

◆ i32

vslo i32

Definition at line 77 of file types.h.

◆ i64

typedef signed long i64

Definition at line 78 of file types.h.

◆ i8

typedef signed char i8

Definition at line 45 of file types.h.

◆ u128

typedef unsigned int u128

Definition at line 63 of file types.h.

◆ u16

typedef unsigned short u16

Definition at line 57 of file types.h.

◆ u32

__m128i __m128i __m256i __m256i u32

Definition at line 88 of file types.h.

◆ u64

typedef unsigned long u64

Definition at line 89 of file types.h.

◆ u8

typedef unsigned char u8

Definition at line 56 of file types.h.

◆ uword

typedef u64 uword

Definition at line 112 of file types.h.

◆ word

typedef i64 word

Definition at line 111 of file types.h.

Function Documentation

◆ pointer_to_uword()

static uword pointer_to_uword ( const void *  p)
inlinestatic

Definition at line 131 of file types.h.

addr
vhost_vring_addr_t addr
Definition: vhost_user.h:130