DPDK  16.04.0
Functions
rte_memcpy.h File Reference

Go to the source code of this file.

Functions

static void rte_mov16 (uint8_t *dst, const uint8_t *src)
static void rte_mov32 (uint8_t *dst, const uint8_t *src)
static void rte_mov48 (uint8_t *dst, const uint8_t *src)
static void rte_mov64 (uint8_t *dst, const uint8_t *src)
static void rte_mov128 (uint8_t *dst, const uint8_t *src)
static void rte_mov256 (uint8_t *dst, const uint8_t *src)
static void * rte_memcpy (void *dst, const void *src, size_t n)

Detailed Description

Functions for vectorised implementation of memcpy().

Definition in file rte_memcpy.h.

Function Documentation

static void rte_mov16 ( uint8_t *  dst,
const uint8_t *  src 
)
inlinestatic

Copy 16 bytes from one location to another using optimised instructions. The locations should not overlap.

Parameters
dstPointer to the destination of the data.
srcPointer to the source data.
static void rte_mov32 ( uint8_t *  dst,
const uint8_t *  src 
)
inlinestatic

Copy 32 bytes from one location to another using optimised instructions. The locations should not overlap.

Parameters
dstPointer to the destination of the data.
srcPointer to the source data.
static void rte_mov48 ( uint8_t *  dst,
const uint8_t *  src 
)
inlinestatic

Copy 48 bytes from one location to another using optimised instructions. The locations should not overlap.

Parameters
dstPointer to the destination of the data.
srcPointer to the source data.
static void rte_mov64 ( uint8_t *  dst,
const uint8_t *  src 
)
inlinestatic

Copy 64 bytes from one location to another using optimised instructions. The locations should not overlap.

Parameters
dstPointer to the destination of the data.
srcPointer to the source data.
static void rte_mov128 ( uint8_t *  dst,
const uint8_t *  src 
)
inlinestatic

Copy 128 bytes from one location to another using optimised instructions. The locations should not overlap.

Parameters
dstPointer to the destination of the data.
srcPointer to the source data.
static void rte_mov256 ( uint8_t *  dst,
const uint8_t *  src 
)
inlinestatic

Copy 256 bytes from one location to another using optimised instructions. The locations should not overlap.

Parameters
dstPointer to the destination of the data.
srcPointer to the source data.
static void* rte_memcpy ( void *  dst,
const void *  src,
size_t  n 
)
static

Copy bytes from one location to another. The locations must not overlap.

Note
This is implemented as a macro, so it's address should not be taken and care is needed as parameter expressions may be evaluated multiple times.
Parameters
dstPointer to the destination of the data.
srcPointer to the source data.
nNumber of bytes to copy.
Returns
Pointer to the destination data.
Examples:
netmap_compat/lib/compat_netmap.c, ptpclient/ptpclient.c, tep_termination/vxlan.c, vhost/main.c, vhost_xen/main.c, vmdq/main.c, and vmdq_dcb/main.c.