From owner-freebsd-hackers Wed Feb 25 14:48:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA14339 for freebsd-hackers-outgoing; Wed, 25 Feb 1998 14:48:23 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA14160 for ; Wed, 25 Feb 1998 14:47:45 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.5/8.8.7) id JAA00900; Thu, 26 Feb 1998 09:48:34 +1100 (EST) (envelope-from jb) From: John Birrell Message-Id: <199802252248.JAA00900@cimlogic.com.au> Subject: Re: RE: New utilities: factor(1) and wid(1)? In-Reply-To: <19980226002846.05689@techunix.technion.ac.il> from Anatoly Vorobey at "Feb 26, 98 00:28:46 am" To: mellon@pobox.com (Anatoly Vorobey) Date: Thu, 26 Feb 1998 09:48:34 +1100 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Anatoly Vorobey wrote: > P.S. What's the "politically correct" way to specify a long long > in FreeBSD: 'long long'? 'int64_t'? 'quad_t'? long long, IMO. There is nothing to say how many bytes in a 'long long'. If you are explicitly coding to a 64-bit value, then use int64_t so that the arch specific headers will DTRT. I'd be included to stay away from quad_t. For instance, printf formats that use %q need a long long, not a quad_t. I'm having to fix things like this to get the FreeBSD source to work on alpha. FWIW, gcc 2.7.2.2 on alpha has sizeof(long) = sizeof(long long) = 8. -- John Birrell - jb@cimlogic.com.au; jb@netbsd.org; jb@freebsd.org CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message