FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
byte_order.h File Reference
+ Include dependency graph for byte_order.h:

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

◆ CLIB_ARCH_IS_BIG_ENDIAN

#define CLIB_ARCH_IS_BIG_ENDIAN   (0)

Definition at line 44 of file byte_order.h.

◆ clib_arch_is_big_endian

#define clib_arch_is_big_endian   CLIB_ARCH_IS_BIG_ENDIAN

Definition at line 53 of file byte_order.h.

◆ CLIB_ARCH_IS_LITTLE_ENDIAN

#define CLIB_ARCH_IS_LITTLE_ENDIAN   (1)

Definition at line 45 of file byte_order.h.

◆ clib_arch_is_little_endian

#define clib_arch_is_little_endian   CLIB_ARCH_IS_LITTLE_ENDIAN

Definition at line 54 of file byte_order.h.

Function Documentation

◆ clib_byte_swap_i16()

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:

◆ clib_byte_swap_i32()

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:

◆ clib_byte_swap_i64()

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:

◆ clib_byte_swap_u16()

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:

◆ clib_byte_swap_u32()

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:

◆ clib_byte_swap_u64()

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: