From nobody Fri Dec 31 10:10:55 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 54E301917F1A; Fri, 31 Dec 2021 10:10:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JQLWN0f3hz3h5v; Fri, 31 Dec 2021 10:10:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E9F2D1B1C; Fri, 31 Dec 2021 10:10:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BVAAtk5002778; Fri, 31 Dec 2021 10:10:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BVAAtos002777; Fri, 31 Dec 2021 10:10:55 GMT (envelope-from git) Date: Fri, 31 Dec 2021 10:10:55 GMT Message-Id: <202112311010.1BVAAtos002777@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: cb65d4432aed - main - sys/cpuset.h: add 3 more macros provided by GLIBC List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cb65d4432aed11a0cd77d2bd235d6f760ae91c38 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640945456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0mCtOg0w+OxlPUBTe8AYQq5F19HjuW+5c6pO55U9Lfc=; b=sxVCgFVgFmU0HVXY2FQrbcdS32TnKFFlOpzfASfBs7i9HSYPTMyJGbZcs3vVvy/wVe0ZNa m65hXq0iBzAoKg84TzbURen77ZQOT/vTj9oayjZdR1TzfjbTM46SPbag0Lao2x8RIatiw4 JaNHff1masLk5/8OT80v67FmuxJROYiKXfXSGDjOyGsPlQckrrpVOF6oeg/A400lAsCVeN 2ZBxdUMTEkgZBAKE00yURUHOzI7obP6GTgE7R8GGX9SUa/3XROgRuvnl4scy/gc88UZcsj HZmP61oM7l6hCIu0htxxt01VQLy1wV8P3N8SumVNxl1Kn7RGnCsNfXvKtvyP2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640945456; a=rsa-sha256; cv=none; b=gSTLptazjLvvX1Wynz54eMaf5avp/jTfwZO6jnUiwhe4YKC6qst177cXiy1313Bo7NB9XX Az8K12d05h/8lTxTLqJObCjCFsOTCkj3Ct/n6W+A2g3Zg5yjVVvVed5OOdmbJeu4dvcH8V w4n6xmgjYcpV7ft+PcD2sXcXDg8sxeMkP/iNwQD1u896iafsaRMyeGVAnYCqrx6tpRcgwq uJm6IFzvm8iXILCn7YBFqhQTYVjLMqXLcShXCKjnCns+J5yFKMSB+3lWxpsMBtnvXucwTf OSXbR90c3uPqLQTpJ8W+rbWnZAWDDC4EUJAyC+1EiGddGLY8ssIZ1tJyWHBfdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=cb65d4432aed11a0cd77d2bd235d6f760ae91c38 commit cb65d4432aed11a0cd77d2bd235d6f760ae91c38 Author: Stefan Eßer AuthorDate: 2021-12-31 10:08:34 +0000 Commit: Stefan Eßer CommitDate: 2021-12-31 10:08:34 +0000 sys/cpuset.h: add 3 more macros provided by GLIBC The lang/python* ports failed since they expected CPU_COUNT_S() to be provided by sys/cpuset.h. Add this function plus 2 more in a way that is compatible with GLIBC. Reported by: ler at lerctr.org (Larry Rosenman) --- 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 /*