Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>  > Gilles Chanteperdrix wrote:
>  > > Philippe Gerum wrote:
>  > >  > - the posix registry
>  > > 
>  > > Is it enough to replace 1 << (fd % BITS_PER_LONG) 
>  > > with 1L << (fd % BITS_PER_LONG) ?
>  > > 
>  > 
>  > Yes, of course!
> 
> But ffs on x86_64 takes an int as argument, not a long. So, my best
> option is to replace BITS_PER_LONG with 32 and work with ints instead of
> longs.

Or we switch to __ffs, which operates on ulong.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to