Re: [PATCH] Big-endian reading/writing cramfs (vs 2.4.10)

Andreas Dilger (adilger@turbolabs.com)
Fri, 28 Sep 2001 16:33:13 -0600


On Sep 28, 2001 14:58 -0700, Brad wrote:
> +#define CRAM_SWAB_16(x) ( ( (0x0000FF00 & (x)) >> 8 ) | \
> + ( (0x000000FF & (x)) << 8 ) )

Why not just use the well-defined le16_to_cpu() and le32_to_cpu() macros?

Cheers, Andreas

--
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

- 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/