From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id AD2E93864862; Fri, 24 Jun 2022 05:43:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD2E93864862 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] sched.h: add CPU_EQUAL() for better compatibility with Linux X-Act-Checkin: newlib-cygwin X-Git-Author: Konstantin Belousov X-Git-Refname: refs/heads/master X-Git-Oldrev: 6070714e0f015aeb72d56e487050ae708316367c X-Git-Newrev: 4ac3ee88c7fbb3ceded25c2f341351f2776f316e Message-Id: <20220624054314.AD2E93864862@sourceware.org> Date: Fri, 24 Jun 2022 05:43:14 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2022 05:43:14 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D4ac3ee88c7f= bb3ceded25c2f341351f2776f316e commit 4ac3ee88c7fbb3ceded25c2f341351f2776f316e Author: Konstantin Belousov Date: Sat Oct 30 10:36:24 2021 +0300 sched.h: add CPU_EQUAL() for better compatibility with Linux =20 Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32901 Diff: --- newlib/libc/sys/rtems/include/sys/cpuset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/sys/rtems/include/sys/cpuset.h b/newlib/libc/sys/r= tems/include/sys/cpuset.h index 7779f0639..e46090b8a 100644 --- a/newlib/libc/sys/rtems/include/sys/cpuset.h +++ b/newlib/libc/sys/rtems/include/sys/cpuset.h @@ -205,7 +205,7 @@ static __inline int CPU_COUNT(const cpu_set_t *set) static __inline int CPU_EQUAL_S(size_t setsize, const cpu_set_t *set1, const cpu_set_t *set2) { - return !BIT_CMP(_cpu_set_bits(setsize), set1, set2); + return BIT_CMP(_cpu_set_bits(setsize), set1, set2) =3D=3D 0; } =20 static __inline int CPU_EQUAL(const cpu_set_t *set1, const cpu_set_t *set2)