On Tue, Sep 19, 2000 at 07:13:31PM -0400, Alexander Viro wrote: > +static inline __u16 ___swab16(__u16 x) > +{ > + return ((x & (__u16)0x00ffU) << 8) | ((x & (__u16)0xff00U) >> 8); > +} > +static inline __u32 ___swab16(__u32 x) ^^^^^^^^^ > +{ > + return ((x & (__u32)0x000000ffUL) << 24) | > + ((x & (__u32)0x0000ff00UL) << 8) | > + ((x & (__u32)0x00ff0000UL) >> 8) | > + ((x & (__u32)0xff000000UL) >> 24); > +} > +static inline __u64 ___swab16(__u64 x) ^^^^^^^^^ Andrea - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: [PATCH] abuse of macros i... Andrea Arcangeli
- Re: [PATCH] abuse of macros i... Andi Kleen
- Re: [PATCH] abuse of macros i... Horst von Brand
- Re: [PATCH] abuse of macros in swab.h Alexander Viro
- Re: [PATCH] abuse of macros in swab.h Martin Dalecki
- Re: [PATCH] abuse of macros in swa... Andi Kleen
- Re: [PATCH] abuse of macros in swab.h David S. Miller
- Re: [PATCH] abuse of macros in swab.h Linus Torvalds
- Re: [PATCH] abuse of macros in swa... Alexander Viro
- Re: [PATCH] abuse of macros in swab.h Olivier Galibert
- Re: [PATCH] abuse of macros in swab.h Andrea Arcangeli
- Re: [PATCH] abuse of macros in swab.h Alexander Viro
- Re: [PATCH] abuse of macros in swab.h Trond Myklebust
- Re: [PATCH] abuse of macros in swab.h Andrzej Krzysztofowicz
- Re: [PATCH] abuse of macros in swab.h Giuliano Pochini
- Re: [PATCH] Fix big endian ext2 bmap in 2.2. Alexander Viro