diff --git a/lib/librte_eal/freebsd/include/rte_os.h b/lib/librte_eal/freebsd/include/rte_os.h index ecb9d8d801..dcd32bfb5d 100644 --- a/lib/librte_eal/freebsd/include/rte_os.h +++ b/lib/librte_eal/freebsd/include/rte_os.h @@ -17,17 +17,11 @@ typedef cpuset_t rte_cpuset_t; #define RTE_CPU_AND(dst, src1, src2) do \ { \ - cpuset_t tmp; \ - CPU_COPY(src1, &tmp); \ - CPU_AND(&tmp, src2); \ - CPU_COPY(&tmp, dst); \ + CPU_AND(dst, src1, src2); \ } while (0) #define RTE_CPU_OR(dst, src1, src2) do \ { \ - cpuset_t tmp; \ - CPU_COPY(src1, &tmp); \ - CPU_OR(&tmp, src2); \ - CPU_COPY(&tmp, dst); \ + CPU_OR(dst, src1, src2); \ } while (0) #define RTE_CPU_FILL(set) CPU_FILL(set) @@ -43,10 +37,7 @@ typedef cpuset_t rte_cpuset_t; #else #define RTE_CPU_NOT(dst, src) do \ { \ - cpuset_t tmp; \ - CPU_FILL(&tmp); \ - CPU_ANDNOT(&tmp, src); \ - CPU_COPY(&tmp, dst); \ + CPU_ANDNOT(dst, dst, src); \ } while (0) #endif