FD.io VPP  v16.06
Vector Packet Processing
byte_order.h File Reference
+ Include dependency graph for byte_order.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLIB_ARCH_IS_BIG_ENDIAN   (0)
 
#define CLIB_ARCH_IS_LITTLE_ENDIAN   (1)
 
#define clib_arch_is_big_endian   CLIB_ARCH_IS_BIG_ENDIAN
 
#define clib_arch_is_little_endian   CLIB_ARCH_IS_LITTLE_ENDIAN
 

Functions

always_inline u16 clib_byte_swap_u16 (u16 x)
 
always_inline i16 clib_byte_swap_i16 (i16 x)
 
always_inline u32 clib_byte_swap_u32 (u32 x)
 
always_inline i32 clib_byte_swap_i32 (i32 x)
 
always_inline u64 clib_byte_swap_u64 (u64 x)
 
always_inline i64 clib_byte_swap_i64 (i64 x)
 

Macro Definition Documentation

#define CLIB_ARCH_IS_BIG_ENDIAN   (0)

Definition at line 44 of file byte_order.h.

#define clib_arch_is_big_endian   CLIB_ARCH_IS_BIG_ENDIAN

Definition at line 53 of file byte_order.h.

#define CLIB_ARCH_IS_LITTLE_ENDIAN   (1)

Definition at line 45 of file byte_order.h.

#define clib_arch_is_little_endian   CLIB_ARCH_IS_LITTLE_ENDIAN

Definition at line 54 of file byte_order.h.

Function Documentation

always_inline i16 clib_byte_swap_i16 ( i16  x)

Definition at line 61 of file byte_order.h.

+ Here is the call graph for this function:

always_inline i32 clib_byte_swap_i32 ( i32  x)

Definition at line 81 of file byte_order.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline i64 clib_byte_swap_i64 ( i64  x)

Definition at line 104 of file byte_order.h.

+ Here is the call graph for this function:

always_inline u16 clib_byte_swap_u16 ( u16  x)

Definition at line 57 of file byte_order.h.

+ Here is the caller graph for this function:

always_inline u32 clib_byte_swap_u32 ( u32  x)

Definition at line 65 of file byte_order.h.

+ Here is the caller graph for this function:

always_inline u64 clib_byte_swap_u64 ( u64  x)

Definition at line 85 of file byte_order.h.

+ Here is the caller graph for this function: