All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [PATCH] fix ffnz for 64-bit hosts
Date: Tue, 24 Apr 2007 10:18:10 +0200	[thread overview]
Message-ID: <1177402690.20763.31.camel@domain.hid> (raw)
In-Reply-To: <462CCC9E.1040500@domain.hid>

On Mon, 2007-04-23 at 17:11 +0200, Jan Kiszka wrote:
> I'm just not sure if "#define _GNU_SOURCE" is the preferred way to go.
> 

It's already there when compiling the skins in simulation mode.

> 
> Index: xenomai/include/asm-sim/system.h
> ===================================================================
> --- xenomai.orig/include/asm-sim/system.h
> +++ xenomai/include/asm-sim/system.h
> @@ -24,6 +24,7 @@
>  
>  #include <asm/param.h>
>  #include <errno.h>
> +#define _GNU_SOURCE
>  #include <string.h>
>  #include <malloc.h>
>  #include <stdlib.h>
> @@ -172,7 +173,7 @@ static inline unsigned long long xnarch_
>  
>  static inline unsigned long ffnz (unsigned long word)
>  {
> -    return ffs((int)word) - 1;
> +    return ffsl(word) - 1;
>  }
>  

Merged, thanks.

>  #define xnarch_stack_size(tcb)    0
> Index: xenomai/ChangeLog
> ===================================================================
> --- xenomai.orig/ChangeLog
> +++ xenomai/ChangeLog
> @@ -5,6 +5,8 @@
>  
>  	* include/nucleus/system.h: Remove unused (and bogus) ffnz wrapper.
>  
> +	* include/asm-sim/system.h: Fix ffnz for 64-bit hosts.
> +
>  2007-04-19  Philippe Gerum  <rpm@xenomai.org>
>  
>  	* ksrc/skins/vrtx/module.c, ksrc/nucleus/pipe.c,
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
-- 
Philippe.




      reply	other threads:[~2007-04-24  8:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-23 15:11 [Xenomai-core] [PATCH] fix ffnz for 64-bit hosts Jan Kiszka
2007-04-24  8:18 ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1177402690.20763.31.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.