]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/lib/librte_eal/ppc/include/rte_vect.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / lib / librte_eal / ppc / include / rte_vect.h
CommitLineData
f67539c2
TL
1/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (C) IBM Corporation 2016.
4 */
5
6#ifndef _RTE_VECT_PPC_64_H_
7#define _RTE_VECT_PPC_64_H_
8
9#include "rte_altivec.h"
10
11#include "generic/rte_vect.h"
12#include "rte_common.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18typedef vector signed int xmm_t;
19
20#define XMM_SIZE (sizeof(xmm_t))
21#define XMM_MASK (XMM_SIZE - 1)
22
23typedef union rte_xmm {
24 xmm_t x;
25 uint8_t u8[XMM_SIZE / sizeof(uint8_t)];
26 uint16_t u16[XMM_SIZE / sizeof(uint16_t)];
27 uint32_t u32[XMM_SIZE / sizeof(uint32_t)];
28 uint64_t u64[XMM_SIZE / sizeof(uint64_t)];
29 double pd[XMM_SIZE / sizeof(double)];
30} __rte_aligned(16) rte_xmm_t;
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif /* _RTE_VECT_PPC_64_H_ */