From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 28 Sep 2001 18:33:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 28 Sep 2001 18:33:35 -0400 Received: from h24-64-71-161.cg.shawcable.net ([24.64.71.161]:25591 "EHLO webber.adilger.int") by vger.kernel.org with ESMTP id ; Fri, 28 Sep 2001 18:33:23 -0400 From: Andreas Dilger Date: Fri, 28 Sep 2001 16:33:13 -0600 To: Brad Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] Big-endian reading/writing cramfs (vs 2.4.10) Message-ID: <20010928163313.C930@turbolinux.com> Mail-Followup-To: Brad , linux-kernel@vger.kernel.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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