On Wed, Feb 01, 2006 at 12:27:38PM +0100, Roman Zippel wrote:
> > +static __inline__ int generic_test_le_bit(unsigned long nr,
> > + __const__ unsigned long *addr)
> > +{
> > + __const__ unsigned char *tmp = (__const__ unsigned char *) addr;
> > + return (tmp[nr >> 3] >> (nr & 7)) & 1;
> > +}
>
> The underscores are not needed.
>
Thanks, I converted to 'inline' and 'const'.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: DECstation R3000 boot error, Maciej W. Rozycki |
|---|---|
| Next by Date: | Re: [patch 14/44] generic hweight{64,32,16,8}(), Akinobu Mita |
| Previous by Thread: | Re: [patch 15/44] generic ext2_{set,clear,test,find_first_zero,find_next_zero}_bit(), Roman Zippel |
| Next by Thread: | Re: [patch 15/44] generic ext2_{set,clear,test,find_first_zero,find_next_zero}_bit(), Akinobu Mita |
| Indexes: | [Date] [Thread] [Top] [All Lists] |