FD.io VPP  v21.10.1-2-g0a485f517
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   (1)
 
#define CLIB_ARCH_IS_LITTLE_ENDIAN   (0)
 
#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   (1)

Definition at line 48 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   (0)

Definition at line 49 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 63 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 75 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 87 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 69 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 81 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 180 of file byte_order.h.

◆ clib_host_to_net_f64()

static f64 clib_host_to_net_f64 ( f64  x)
inlinestatic

Definition at line 178 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 179 of file byte_order.h.

◆ clib_net_to_host_f64()

static f64 clib_net_to_host_f64 ( f64  x)
inlinestatic

Definition at line 177 of file byte_order.h.

+ Here is the caller graph for this function: