lib: use SPDX tag for Cavium copyright files
[dpdk.git] / lib / librte_eal / common / include / arch / arm / rte_memcpy_64.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015 Cavium, Inc
3  */
4
5 #ifndef _RTE_MEMCPY_ARM64_H_
6 #define _RTE_MEMCPY_ARM64_H_
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 #include <stdint.h>
13 #include <string.h>
14
15 #include "generic/rte_memcpy.h"
16
17 static inline void
18 rte_mov16(uint8_t *dst, const uint8_t *src)
19 {
20         memcpy(dst, src, 16);
21 }
22
23 static inline void
24 rte_mov32(uint8_t *dst, const uint8_t *src)
25 {
26         memcpy(dst, src, 32);
27 }
28
29 static inline void
30 rte_mov48(uint8_t *dst, const uint8_t *src)
31 {
32         memcpy(dst, src, 48);
33 }
34
35 static inline void
36 rte_mov64(uint8_t *dst, const uint8_t *src)
37 {
38         memcpy(dst, src, 64);
39 }
40
41 static inline void
42 rte_mov128(uint8_t *dst, const uint8_t *src)
43 {
44         memcpy(dst, src, 128);
45 }
46
47 static inline void
48 rte_mov256(uint8_t *dst, const uint8_t *src)
49 {
50         memcpy(dst, src, 256);
51 }
52
53 #define rte_memcpy(d, s, n)     memcpy((d), (s), (n))
54
55 #ifdef __cplusplus
56 }
57 #endif
58
59 #endif /* _RTE_MEMCPY_ARM_64_H_ */