public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Fix RTEMS CPU_EQUAL_S()
@ 2017-06-07  6:42 Sebastian Huber
  2017-06-07  6:42 ` [PATCH 2/2] Update FreeBSD revision of RTEMS <sys/bitset.h> Sebastian Huber
  2017-06-07 10:07 ` [PATCH 1/2] Fix RTEMS CPU_EQUAL_S() Corinna Vinschen
  0 siblings, 2 replies; 4+ messages in thread
From: Sebastian Huber @ 2017-06-07  6:42 UTC (permalink / raw)
  To: newlib

According to the FreeBSD man page BIT_CMP() returns true in case the two
sets are NOT equal.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
 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/rtems/include/sys/cpuset.h
index 1e09b0275..7d54483a1 100644
--- a/newlib/libc/sys/rtems/include/sys/cpuset.h
+++ b/newlib/libc/sys/rtems/include/sys/cpuset.h
@@ -202,7 +202,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);
 }
 
 static __inline int CPU_EQUAL(const cpu_set_t *set1, const cpu_set_t *set2)
-- 
2.12.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Update FreeBSD revision of RTEMS <sys/bitset.h>
  2017-06-07  6:42 [PATCH 1/2] Fix RTEMS CPU_EQUAL_S() Sebastian Huber
@ 2017-06-07  6:42 ` Sebastian Huber
  2017-06-07 10:07 ` [PATCH 1/2] Fix RTEMS CPU_EQUAL_S() Corinna Vinschen
  1 sibling, 0 replies; 4+ messages in thread
From: Sebastian Huber @ 2017-06-07  6:42 UTC (permalink / raw)
  To: newlib

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
 newlib/libc/sys/rtems/include/sys/bitset.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/sys/rtems/include/sys/bitset.h b/newlib/libc/sys/rtems/include/sys/bitset.h
index ac01b8005..ec75223e9 100644
--- a/newlib/libc/sys/rtems/include/sys/bitset.h
+++ b/newlib/libc/sys/rtems/include/sys/bitset.h
@@ -26,7 +26,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- * $FreeBSD: head/sys/sys/bitset.h 299184 2016-05-06 16:41:23Z royger $
+ * $FreeBSD: head/sys/sys/bitset.h 318781 2017-05-24 10:09:54Z kib $
  */
 
 #ifndef _SYS_BITSET_H_
-- 
2.12.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] Fix RTEMS CPU_EQUAL_S()
  2017-06-07  6:42 [PATCH 1/2] Fix RTEMS CPU_EQUAL_S() Sebastian Huber
  2017-06-07  6:42 ` [PATCH 2/2] Update FreeBSD revision of RTEMS <sys/bitset.h> Sebastian Huber
@ 2017-06-07 10:07 ` Corinna Vinschen
  2017-06-07 12:51   ` Sebastian Huber
  1 sibling, 1 reply; 4+ messages in thread
From: Corinna Vinschen @ 2017-06-07 10:07 UTC (permalink / raw)
  To: Sebastian Huber; +Cc: newlib

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

Hi Sebastian,

On Jun  7 08:42, Sebastian Huber wrote:
> According to the FreeBSD man page BIT_CMP() returns true in case the two
> sets are NOT equal.
> 
> Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
> ---

Please apply for write access to the newlib-cygwin repo here:
https://sourceware.org/cgi-bin/pdw/ps_form.cgi
Set "email address of person who approved request" to my address.

Given the number of contributions you're making to newlib-cygwin,
you should be allowed to apply patches yourself after approval.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] Fix RTEMS CPU_EQUAL_S()
  2017-06-07 10:07 ` [PATCH 1/2] Fix RTEMS CPU_EQUAL_S() Corinna Vinschen
@ 2017-06-07 12:51   ` Sebastian Huber
  0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Huber @ 2017-06-07 12:51 UTC (permalink / raw)
  To: newlib

Hello,

On 07/06/17 12:07, Corinna Vinschen wrote:
> Hi Sebastian,
>
> On Jun  7 08:42, Sebastian Huber wrote:
>> According to the FreeBSD man page BIT_CMP() returns true in case the two
>> sets are NOT equal.
>>
>> Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
>> ---
> Please apply for write access to the newlib-cygwin repo here:
> https://sourceware.org/cgi-bin/pdw/ps_form.cgi
> Set "email address of person who approved request" to my address.
>
> Given the number of contributions you're making to newlib-cygwin,
> you should be allowed to apply patches yourself after approval.

thanks, I have now write-access:

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=ffcaf32108f1e7fd8f6b2b180f14fcf553c977bf

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-07 12:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-07  6:42 [PATCH 1/2] Fix RTEMS CPU_EQUAL_S() Sebastian Huber
2017-06-07  6:42 ` [PATCH 2/2] Update FreeBSD revision of RTEMS <sys/bitset.h> Sebastian Huber
2017-06-07 10:07 ` [PATCH 1/2] Fix RTEMS CPU_EQUAL_S() Corinna Vinschen
2017-06-07 12:51   ` Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).