1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2019 Intel Corporation
9 * This header should contain any definition
10 * which is not supported natively or named differently in Linux.
15 #ifdef CPU_SETSIZE /* may require _GNU_SOURCE */
16 typedef cpu_set_t rte_cpuset_t;
17 #define RTE_HAS_CPUSET
18 #define RTE_CPU_AND(dst, src1, src2) CPU_AND(dst, src1, src2)
19 #define RTE_CPU_OR(dst, src1, src2) CPU_OR(dst, src1, src2)
20 #define RTE_CPU_FILL(set) do \
24 for (i = 0; i < CPU_SETSIZE; i++) \
27 #define RTE_CPU_NOT(dst, src) do \
31 CPU_XOR(dst, &tmp, src); \
35 #endif /* _RTE_OS_H_ */