FD.io VPP  v20.01-48-g3e0dafb74
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)
 
static f64 clib_net_to_host_f64 (f64 x)
 
static f64 clib_host_to_net_f64 (f64 x)
 
static f32 clib_net_to_host_f32 (f32 x)
 
static f32 clib_host_to_net_f32 (f32 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:

◆ clib_host_to_net_f32()

static f32 clib_host_to_net_f32 ( f32  x)
inlinestatic

Definition at line 218 of file byte_order.h.

◆ clib_host_to_net_f64()

static f64 clib_host_to_net_f64 ( f64  x)
inlinestatic

Definition at line 216 of file byte_order.h.

+ Here is the caller graph for this function:

◆ clib_net_to_host_f32()

static f32 clib_net_to_host_f32 ( f32  x)
inlinestatic

Definition at line 217 of file byte_order.h.

◆ clib_net_to_host_f64()

static f64 clib_net_to_host_f64 ( f64  x)
inlinestatic

Definition at line 215 of file byte_order.h.

+ Here is the caller graph for this function: