From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: big-endian udfct_1_0r2 Date: Wed, 8 Oct 2003 19:30:49 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20031008183049.GN10906@parcelfarce.linux.theplanet.co.uk> References: <1065553341.8172.45.camel@patehci2> <20031007204951.A25423@falcon.csc.calpoly.edu> <1065631289.6625.34.camel@patehci2> <1065631668.6625.48.camel@patehci2> <1065635511.7602.38.camel@patehci2> <1065636544.7602.49.camel@patehci2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux_udf@hpesjro.fc.hp.com Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:36507 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S261693AbTJHSav (ORCPT ); Wed, 8 Oct 2003 14:30:51 -0400 To: Pat LaVarre Content-Disposition: inline In-Reply-To: <1065636544.7602.49.camel@patehci2> List-Id: linux-fsdevel.vger.kernel.org On Wed, Oct 08, 2003 at 12:09:04PM -0600, Pat LaVarre wrote: > > http://www.extra.research.philips.com/udf/download.html > > For big endian platforms, > > ENDIAN_SWAP must be defined at compilation time. > > Anyone here already working on fixing that feature? > > I'm too new myself to know how socially correct C code in linux does > distinguish big-endian from little-endian. Perhaps the first fragment Take a look at include/linux/byteorder/generic.h, those are the functions to use. cpu_to_le{32,16} would probably be the favourite. -- "It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk