From owner-freebsd-hackers Mon Apr 21 22:40:20 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA15950 for hackers-outgoing; Mon, 21 Apr 1997 22:40:20 -0700 (PDT) Received: from hydrogen.nike.efn.org (metriclient-13.uoregon.edu [128.223.172.13]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA15944 for ; Mon, 21 Apr 1997 22:40:13 -0700 (PDT) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.4/8.8.4) id WAA14998; Mon, 21 Apr 1997 22:39:50 -0700 (PDT) Message-ID: <19970421223950.65080@hydrogen.nike.efn.org> Date: Mon, 21 Apr 1997 22:39:50 -0700 From: John-Mark Gurney To: Adrian Chadd Cc: Chuck Robey , freebsd-hackers@freebsd.org Subject: Re: 64 bit number definitions? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: ; from Adrian Chadd on Tue, Apr 22, 1997 at 12:23:28PM +0800 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2-960801-SNAP i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Adrian Chadd scribbled this message on Apr 22: > > [snip] > > > > > I've recently (for a class) been forced to code under dos, so I think I > > know where your size guesses are coming from, but they're in error. Run > > the following program: [program deleted] > > which has output "sizeof int is 4, long 4, and quad 8" > > Interesting... could it be due to alignment? nope.. they are really that size... #include #include #include void main() { printf("int max: %d, uint max: %u, quad max: %qd, long max: %d\n", INT_MAX, UINT_MAX, QUAD_MAX, LONG_MAX); } int max: 2147483647, uint max: 4294967295, quad max: 9223372036854775807, long max: 2147483647 -- John-Mark Cu Networking Modem/FAX: +1 541 683 6954 Live in Peace, destroy Micro$oft, support free software, run FreeBSD