From owner-freebsd-hackers Sat Aug 7 22: 6: 9 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 8817414DAB for ; Sat, 7 Aug 1999 22:06:04 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.3/8.8.7) with ESMTP id BAA32260; Sun, 8 Aug 1999 01:04:20 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Sun, 8 Aug 1999 01:04:10 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: John Polstra Cc: ticso@cicely.de, hackers@FreeBSD.org Subject: Re: quad_t and portability In-Reply-To: <199908080338.UAA01158@vashon.polstra.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 7 Aug 1999, John Polstra wrote: > In article <19990807165202.A37288@cicely8.cicely.de>, > Bernd Walter wrote: > > On Sat, Aug 07, 1999 at 05:38:48PM +0800, Peter Wemm wrote: > > > > > > But not on the Alpha... int64_t is a long there, and gcc complains unless > > > you use %ld. > > Mmm and long is 32Bit it seems. > > No, longs are 64 bits on the Alpha. Ints are 32 bits, though. Let us now note that the new, portable, 90's way of printing something cast to a 64-bit value is printf("foo = %lld\n", (long long)foo); This works in the kernel (4.0 now) and userland, so it would be the proper way. Is there anyone who is specifically checking for long long C9X-compliancy in the source tree (mainly libc)? Anyway, it's not an issue what the size of a long/int is, for printing a 64-bit value. That was my point, I'm sure of it! > > John > -- > John Polstra jdp@polstra.com > John D. Polstra & Co., Inc. Seattle, Washington USA > "No matter how cynical I get, I just can't keep up." -- Nora Ephron > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message