Messages in this thread | | | Date | Thu, 16 Oct 2003 00:22:14 -0400 (EDT) | From | Zwane Mwaikambo <> | Subject | Re: [PATCH][2.6] constant_test_bit doesn't like my gcc |
| |
On Wed, 15 Oct 2003, Andrew Morton wrote:
> > static __inline__ int constant_test_bit(int nr, const volatile unsigned long * addr) > > { > > - return ((1UL << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0; > > + return ((1UL << (nr & 31)) & (addr[nr >> 5])) != 0; > > } > > > > Looks fine. Does your compiler get this right?
Yep, thanks. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |