FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
vector.h File Reference
+ Include dependency graph for vector.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define foreach_vec64i   _(i,8,8) _(i,16,4) _(i,32,2)
 
#define foreach_vec64u   _(u,8,8) _(u,16,4) _(u,32,2)
 
#define foreach_vec64f   _(f,32,2)
 
#define foreach_vec128i   _(i,8,16) _(i,16,8) _(i,32,4) _(i,64,2)
 
#define foreach_vec128u   _(u,8,16) _(u,16,8) _(u,32,4) _(u,64,2)
 
#define foreach_vec128f   _(f,32,4) _(f,64,2)
 
#define foreach_vec256i   _(i,8,32) _(i,16,16) _(i,32,8) _(i,64,4)
 
#define foreach_vec256u   _(u,8,32) _(u,16,16) _(u,32,8) _(u,64,4)
 
#define foreach_vec256f   _(f,32,8) _(f,64,4)
 
#define foreach_vec512i   _(i,8,64) _(i,16,32) _(i,32,16) _(i,64,8)
 
#define foreach_vec512u   _(u,8,64) _(u,16,32) _(u,32,16) _(u,64,8)
 
#define foreach_vec512f   _(f,32,16) _(f,64,8)
 
#define foreach_int_vec   foreach_vec64i foreach_vec128i
 
#define foreach_uint_vec   foreach_vec64u foreach_vec128u
 
#define foreach_float_vec   foreach_vec64f foreach_vec128f
 
#define foreach_vec   foreach_int_vec foreach_uint_vec foreach_float_vec
 
#define CLIB_VECTOR_WORD_BITS   64
 
#define VECTOR_WORD_TYPE(t)   t##x
 
#define VECTOR_WORD_TYPE_LEN(t)   (sizeof (VECTOR_WORD_TYPE(t)) / sizeof (t))
 

Macro Definition Documentation

◆ CLIB_VECTOR_WORD_BITS

#define CLIB_VECTOR_WORD_BITS   64

Definition at line 132 of file vector.h.

◆ foreach_float_vec

#define foreach_float_vec   foreach_vec64f foreach_vec128f

Definition at line 105 of file vector.h.

◆ foreach_int_vec

#define foreach_int_vec   foreach_vec64i foreach_vec128i

Definition at line 103 of file vector.h.

◆ foreach_uint_vec

#define foreach_uint_vec   foreach_vec64u foreach_vec128u

Definition at line 104 of file vector.h.

◆ foreach_vec

Definition at line 108 of file vector.h.

◆ foreach_vec128f

#define foreach_vec128f   _(f,32,4) _(f,64,2)

Definition at line 86 of file vector.h.

◆ foreach_vec128i

#define foreach_vec128i   _(i,8,16) _(i,16,8) _(i,32,4) _(i,64,2)

Definition at line 84 of file vector.h.

◆ foreach_vec128u

#define foreach_vec128u   _(u,8,16) _(u,16,8) _(u,32,4) _(u,64,2)

Definition at line 85 of file vector.h.

◆ foreach_vec256f

#define foreach_vec256f   _(f,32,8) _(f,64,4)

Definition at line 89 of file vector.h.

◆ foreach_vec256i

#define foreach_vec256i   _(i,8,32) _(i,16,16) _(i,32,8) _(i,64,4)

Definition at line 87 of file vector.h.

◆ foreach_vec256u

#define foreach_vec256u   _(u,8,32) _(u,16,16) _(u,32,8) _(u,64,4)

Definition at line 88 of file vector.h.

◆ foreach_vec512f

#define foreach_vec512f   _(f,32,16) _(f,64,8)

Definition at line 92 of file vector.h.

◆ foreach_vec512i

#define foreach_vec512i   _(i,8,64) _(i,16,32) _(i,32,16) _(i,64,8)

Definition at line 90 of file vector.h.

◆ foreach_vec512u

#define foreach_vec512u   _(u,8,64) _(u,16,32) _(u,32,16) _(u,64,8)

Definition at line 91 of file vector.h.

◆ foreach_vec64f

#define foreach_vec64f   _(f,32,2)

Definition at line 83 of file vector.h.

◆ foreach_vec64i

#define foreach_vec64i   _(i,8,8) _(i,16,4) _(i,32,2)

Definition at line 81 of file vector.h.

◆ foreach_vec64u

#define foreach_vec64u   _(u,8,8) _(u,16,4) _(u,32,2)

Definition at line 82 of file vector.h.

◆ VECTOR_WORD_TYPE

#define VECTOR_WORD_TYPE (   t)    t##x

Definition at line 160 of file vector.h.

◆ VECTOR_WORD_TYPE_LEN

#define VECTOR_WORD_TYPE_LEN (   t)    (sizeof (VECTOR_WORD_TYPE(t)) / sizeof (t))

Definition at line 161 of file vector.h.