2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (C) IBM Corporation 2016.
6 #ifndef _RTE_VECT_PPC_64_H_
7 #define _RTE_VECT_PPC_64_H_
9 #include "rte_altivec.h"
11 #include "generic/rte_vect.h"
12 #include "rte_common.h"
18 #define RTE_VECT_DEFAULT_SIMD_BITWIDTH RTE_VECT_SIMD_256
20 typedef vector signed int xmm_t;
22 #define XMM_SIZE (sizeof(xmm_t))
23 #define XMM_MASK (XMM_SIZE - 1)
25 typedef union rte_xmm {
27 uint8_t u8[XMM_SIZE / sizeof(uint8_t)];
28 uint16_t u16[XMM_SIZE / sizeof(uint16_t)];
29 uint32_t u32[XMM_SIZE / sizeof(uint32_t)];
30 uint64_t u64[XMM_SIZE / sizeof(uint64_t)];
31 double pd[XMM_SIZE / sizeof(double)];
32 } __rte_aligned(16) rte_xmm_t;
38 #endif /* _RTE_VECT_PPC_64_H_ */