FD.io VPP  v18.04-17-g3a0d853
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

static u16 clib_byte_swap_u16 (u16 x)
 
static i16 clib_byte_swap_i16 (i16 x)
 
static u32 clib_byte_swap_u32 (u32 x)
 
static i32 clib_byte_swap_i32 (i32 x)
 
static u64 clib_byte_swap_u64 (u64 x)
 
static 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

static i16 clib_byte_swap_i16 ( i16  x)
inlinestatic

Definition at line 70 of file byte_order.h.

+ Here is the call graph for this function:

static i32 clib_byte_swap_i32 ( i32  x)
inlinestatic

Definition at line 95 of file byte_order.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static i64 clib_byte_swap_i64 ( i64  x)
inlinestatic

Definition at line 125 of file byte_order.h.

+ Here is the call graph for this function:

static u16 clib_byte_swap_u16 ( u16  x)
inlinestatic

Definition at line 57 of file byte_order.h.

+ Here is the caller graph for this function:

static u32 clib_byte_swap_u32 ( u32  x)
inlinestatic

Definition at line 76 of file byte_order.h.

+ Here is the caller graph for this function:

static u64 clib_byte_swap_u64 ( u64  x)
inlinestatic

Definition at line 101 of file byte_order.h.

+ Here is the caller graph for this function: