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.
98 * @note For x86 platforms to enable the AVX-512 memcpy implementation, set
99 * -DRTE_MEMCPY_AVX512 macro in CFLAGS, or define the RTE_MEMCPY_AVX512 macro
100 * explicitly in the source file before including the rte_memcpy header file.
103 * Pointer to the destination of the data.
105 * Pointer to the source data.
107 * Number of bytes to copy.
109 * Pointer to the destination data.
112 rte_memcpy(void *dst, const void *src, size_t n);
114 #endif /* __DOXYGEN__ */
116 #endif /* _RTE_MEMCPY_H_ */