Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266110AbUA1TJl (ORCPT ); Wed, 28 Jan 2004 14:09:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266121AbUA1TJl (ORCPT ); Wed, 28 Jan 2004 14:09:41 -0500 Received: from kinesis.swishmail.com ([209.10.110.86]:50188 "EHLO kinesis.swishmail.com") by vger.kernel.org with ESMTP id S266110AbUA1TJj (ORCPT ); Wed, 28 Jan 2004 14:09:39 -0500 Message-ID: <401809B2.70907@techsource.com> Date: Wed, 28 Jan 2004 14:12:50 -0500 From: Timothy Miller MIME-Version: 1.0 To: "H. Peter Anvin" CC: klibc list , linux-kernel Subject: Re: long long on 32-bit machines References: <4017F991.2090604@zytor.com> In-Reply-To: <4017F991.2090604@zytor.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 24 H. Peter Anvin wrote: > Hi all, > > 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? > > I'd like to switch klibc to use the 64-bit file ABI thoughout, but it's > a considerable porting effort, and I'm trying to figure out how to best > manage it. > I don't know how it is for GCC, but when using the Sun compiler, "long long" for 32-bit is low-high, while "long long" (or just long) for 64-bit is high-low. This has been an annoyance to me. :) - 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/