Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266161AbUA1TZG (ORCPT ); Wed, 28 Jan 2004 14:25:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266010AbUA1TYx (ORCPT ); Wed, 28 Jan 2004 14:24:53 -0500 Received: from moutng.kundenserver.de ([212.227.126.171]:4032 "EHLO moutng.kundenserver.de") by vger.kernel.org with ESMTP id S266161AbUA1TYD (ORCPT ); Wed, 28 Jan 2004 14:24:03 -0500 To: Subject: Re: long long on 32-bit machines From: =?iso-8859-1?Q?Arnd_Bergmann?= Cc: =?iso-8859-1?Q? "H=2E_Peter_Anvin" ?= Message-Id: <26879984$107531702940180925001758.71044950@config16.schlund.de> X-Binford: 6100 (more power) X-Originating-From: 26879984 X-Mailer: Webmail X-Routing: DE Content-Type: text/plain; charset=US-ASCII Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT X-Priority: 3 Date: Wed, 28 Jan 2004 20:22:01 +0100 X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:@172.23.4.143 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 843 Lines: 26 H.P.A wrote: > Does anyone happen to know if there are *any* 32-bit architectures (on > which Linux runs) for which the ABI for a "long long" is different from > passing two "longs" in the appropriate order, i.e. (hi,lo) for bigendian > or (lo,hi) for littleendian? Some architectures require long long arguments to be passed as an even/odd register pair. For example on s390, void f(int a, int b, long long x) uses registers 2, 3, 4 and 5, while void f(int a, long long x, int b) uses registers 2, 4, 5 and 6. AFAIK, mips does the same, probably others as well. Arnd <>< - 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/