rte_byteorder.h
Contents
Detailed Description
Byte Swap Operations
This file defines a generic API for byte swap operations. Part of the implementation is architecture-
specific.
Definition in file rte_byteorder.h.
Function Documentation
staticuint16_trte_bswap16(uint16_t_x)[static]
Swap bytes in a 16-bit value.
staticuint32_trte_bswap32(uint32_tx)[static]
Swap bytes in a 32-bit value.
staticuint64_trte_bswap64(uint64_tx)[static]
Swap bytes in a 64-bit value.
staticrte_le16_trte_cpu_to_le_16(uint16_tx)[static]
Convert a 16-bit value from CPU order to little endian.
staticrte_le32_trte_cpu_to_le_32(uint32_tx)[static]
Convert a 32-bit value from CPU order to little endian.
staticrte_le64_trte_cpu_to_le_64(uint64_tx)[static]
Convert a 64-bit value from CPU order to little endian.
staticrte_be16_trte_cpu_to_be_16(uint16_tx)[static]
Convert a 16-bit value from CPU order to big endian.
staticrte_be32_trte_cpu_to_be_32(uint32_tx)[static]
Convert a 32-bit value from CPU order to big endian.
staticrte_be64_trte_cpu_to_be_64(uint64_tx)[static]
Convert a 64-bit value from CPU order to big endian.
staticuint16_trte_le_to_cpu_16(rte_le16_tx)[static]
Convert a 16-bit value from little endian to CPU order.
staticuint32_trte_le_to_cpu_32(rte_le32_tx)[static]
Convert a 32-bit value from little endian to CPU order.
staticuint64_trte_le_to_cpu_64(rte_le64_tx)[static]
Convert a 64-bit value from little endian to CPU order.
staticuint16_trte_be_to_cpu_16(rte_be16_tx)[static]
Convert a 16-bit value from big endian to CPU order.
staticuint32_trte_be_to_cpu_32(rte_be32_tx)[static]
Convert a 32-bit value from big endian to CPU order.
staticuint64_trte_be_to_cpu_64(rte_be64_tx)[static]
Convert a 64-bit value from big endian to CPU order.
Name
rte_byteorder.h
Synopsis
#include <stdint.h>
#include <rte_common.h>
#include <rte_config.h>
Typedefstypedef uint16_t rte_be16_ttypedef uint32_t rte_be32_ttypedef uint64_t rte_be64_ttypedef uint16_t rte_le16_ttypedef uint32_t rte_le32_ttypedef uint64_t rte_le64_tFunctions
static uint16_t rte_bswap16 (uint16_t _x)
static uint32_t rte_bswap32 (uint32_t x)
static uint64_t rte_bswap64 (uint64_t x)
static rte_le16_trte_cpu_to_le_16 (uint16_t x)
static rte_le32_trte_cpu_to_le_32 (uint32_t x)
static rte_le64_trte_cpu_to_le_64 (uint64_t x)
static rte_be16_trte_cpu_to_be_16 (uint16_t x)
static rte_be32_trte_cpu_to_be_32 (uint32_t x)
static rte_be64_trte_cpu_to_be_64 (uint64_t x)
static uint16_t rte_le_to_cpu_16 (rte_le16_t x)
static uint32_t rte_le_to_cpu_32 (rte_le32_t x)
static uint64_t rte_le_to_cpu_64 (rte_le64_t x)
static uint16_t rte_be_to_cpu_16 (rte_be16_t x)
static uint32_t rte_be_to_cpu_32 (rte_be32_t x)
static uint64_t rte_be_to_cpu_64 (rte_be64_t x)
Typedef Documentation
typedefuint16_trte_be16_t
16-bit big-endian value.
Definition at line 116 of file rte_byteorder.h.
typedefuint32_trte_be32_t
32-bit big-endian value.
Definition at line 117 of file rte_byteorder.h.
typedefuint64_trte_be64_t
64-bit big-endian value.
Definition at line 118 of file rte_byteorder.h.
typedefuint16_trte_le16_t
16-bit little-endian value.
Definition at line 119 of file rte_byteorder.h.
typedefuint32_trte_le32_t
32-bit little-endian value.
Definition at line 120 of file rte_byteorder.h.
typedefuint64_trte_le64_t
64-bit little-endian value.
Definition at line 121 of file rte_byteorder.h.
