]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/dpdk/lib/librte_eal/ppc/include/rte_altivec.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / lib / librte_eal / ppc / include / rte_altivec.h
1 /*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (C) Mellanox 2020.
4 */
5
6 #ifndef _RTE_ALTIVEC_H_
7 #define _RTE_ALTIVEC_H_
8
9 /* To include altivec.h, GCC version must be >= 4.8 */
10 #include <altivec.h>
11
12 /*
13 * Compilation workaround for PPC64 when AltiVec is fully enabled, e.g. std=c11.
14 * Otherwise there would be a type conflict between stdbool and altivec.
15 */
16 #if defined(__PPC64__) && !defined(__APPLE_ALTIVEC__)
17 #undef bool
18 /* redefine as in stdbool.h */
19 #define bool _Bool
20 #endif
21
22 #endif /* _RTE_ALTIVEC_H_ */