1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2019 Intel Corporation
9 * This is header should contain any function/macro definition
10 * which are not supported natively or named differently in the
11 * freebsd OS. Functions will be added in future releases.
14 #include <pthread_np.h>
16 typedef cpuset_t rte_cpuset_t;
17 #define RTE_CPU_AND(dst, src1, src2) do \
20 CPU_COPY(src1, &tmp); \
21 CPU_AND(&tmp, src2); \
22 CPU_COPY(&tmp, dst); \
24 #define RTE_CPU_OR(dst, src1, src2) do \
27 CPU_COPY(src1, &tmp); \
29 CPU_COPY(&tmp, dst); \
31 #define RTE_CPU_FILL(set) CPU_FILL(set)
33 /* In FreeBSD 13 CPU_NAND macro is CPU_ANDNOT */
35 #define RTE_CPU_NOT(dst, src) do \
39 CPU_NAND(&tmp, src); \
40 CPU_COPY(&tmp, dst); \
43 #define RTE_CPU_NOT(dst, src) do \
47 CPU_ANDNOT(&tmp, src); \
48 CPU_COPY(&tmp, dst); \
52 #endif /* _RTE_OS_H_ */