git: cb10f20a729a - stable/13 - sys/cpuset.h: add 3 more macros provided by GLIBC
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Jan 2022 18:10:32 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=cb10f20a729a086b6bee906c1bc0b03a72e8d3dd
commit cb10f20a729a086b6bee906c1bc0b03a72e8d3dd
Author: Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2021-12-31 10:08:34 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-01-14 16:17:30 +0000
sys/cpuset.h: add 3 more macros provided by GLIBC
(cherry picked from commit cb65d4432aed11a0cd77d2bd235d6f760ae91c38)
---
sys/sys/cpuset.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h
index 9f777e3af523..5841fa37f28a 100644
--- a/sys/sys/cpuset.h
+++ b/sys/sys/cpuset.h
@@ -82,11 +82,15 @@
#define CPU_ISSET_S(n, _s, p) __BIT_ISSET(_s, n, p)
#define CPU_SET_S(n, _s, p) __BIT_SET(_s, n, p)
+#define CPU_CLR_S(n, _s, p) __BIT_CLR(_s, n, p)
#define CPU_ZERO_S(_s, p) __BIT_ZERO(_s, p)
#define CPU_OR_S(_s, d, s1, s2) __BIT_OR2(_s, d, s1, s2)
#define CPU_AND_S(_s, d, s1, s2) __BIT_AND2(_s, d, s1, s2)
#define CPU_XOR_S(_s, d, s1, s2) __BIT_XOR2(_s, d, s1, s2)
+
+#define CPU_COUNT_S(_s, p) ((int)__BIT_COUNT(_s, p))
+#define CPU_EQUAL_S(p, c) (__BIT_CMP(_s, p, c) == 0)
#endif
/*