summaryrefslogtreecommitdiffstats
path: root/src/spdk/dpdk/lib/librte_eal/ppc/include/rte_altivec.h
blob: 1551a945448864e44e41f076bef49f07014578c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * SPDX-License-Identifier: BSD-3-Clause
 * Copyright (C) Mellanox 2020.
 */

#ifndef _RTE_ALTIVEC_H_
#define _RTE_ALTIVEC_H_

/* To include altivec.h, GCC version must be >= 4.8 */
#include <altivec.h>

/*
 * Compilation workaround for PPC64 when AltiVec is fully enabled, e.g. std=c11.
 * Otherwise there would be a type conflict between stdbool and altivec.
 */
#if defined(__PPC64__) && !defined(__APPLE_ALTIVEC__)
#undef bool
/* redefine as in stdbool.h */
#define bool _Bool
#endif

#endif /* _RTE_ALTIVEC_H_ */