]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/dpdk/lib/librte_eal/include/generic/rte_memcpy.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
11 * Functions for vectorised implementation of memcpy().
15 * Copy 16 bytes from one location to another using optimised
16 * instructions. The locations should not overlap.
19 * Pointer to the destination of the data.
21 * Pointer to the source data.
24 rte_mov16(uint8_t *dst
, const uint8_t *src
);
27 * Copy 32 bytes from one location to another using optimised
28 * instructions. The locations should not overlap.
31 * Pointer to the destination of the data.
33 * Pointer to the source data.
36 rte_mov32(uint8_t *dst
, const uint8_t *src
);
41 * Copy 48 bytes from one location to another using optimised
42 * instructions. The locations should not overlap.
45 * Pointer to the destination of the data.
47 * Pointer to the source data.
50 rte_mov48(uint8_t *dst
, const uint8_t *src
);
52 #endif /* __DOXYGEN__ */
55 * Copy 64 bytes from one location to another using optimised
56 * instructions. The locations should not overlap.
59 * Pointer to the destination of the data.
61 * Pointer to the source data.
64 rte_mov64(uint8_t *dst
, const uint8_t *src
);
67 * Copy 128 bytes from one location to another using optimised
68 * instructions. The locations should not overlap.
71 * Pointer to the destination of the data.
73 * Pointer to the source data.
76 rte_mov128(uint8_t *dst
, const uint8_t *src
);
79 * Copy 256 bytes from one location to another using optimised
80 * instructions. The locations should not overlap.
83 * Pointer to the destination of the data.
85 * Pointer to the source data.
88 rte_mov256(uint8_t *dst
, const uint8_t *src
);
93 * Copy bytes from one location to another. The locations must not overlap.
95 * @note This is implemented as a macro, so it's address should not be taken
96 * and care is needed as parameter expressions may be evaluated multiple times.
99 * Pointer to the destination of the data.
101 * Pointer to the source data.
103 * Number of bytes to copy.
105 * Pointer to the destination data.
108 rte_memcpy(void *dst
, const void *src
, size_t n
);
110 #endif /* __DOXYGEN__ */
112 #endif /* _RTE_MEMCPY_H_ */