From owner-freebsd-sparc Tue Dec 16 14:37:54 1997 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA07312 for sparc-outgoing; Tue, 16 Dec 1997 14:37:54 -0800 (PST) (envelope-from owner-freebsd-sparc@FreeBSD.ORG) Received: from chad.ece.nwu.edu (chad.ece.nwu.edu [129.105.5.138]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA07288 for ; Tue, 16 Dec 1997 14:37:36 -0800 (PST) (envelope-from geisler@chad.ece.nwu.edu) Received: (from geisler@localhost) by chad.ece.nwu.edu (8.8.5/8.8.3) id QAA19192; Tue, 16 Dec 1997 16:34:51 -0600 (CST) Message-Id: <199712162234.QAA19192@chad.ece.nwu.edu> Subject: Bad assumptions To: perhaps@yes.no (Eivind Eklund) Date: Tue, 16 Dec 1997 16:34:51 -0600 (CST) Cc: freebsd-sparc@FreeBSD.ORG In-Reply-To: <86sort9b7z.fsf@bitbox.follo.net> from Eivind Eklund at "Dec 16, 97 11:25:52 pm" From: geisler@ece.nwu.edu Reply-To: geisler@ece.nwu.edu X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 1. (void*)(int)(void*) is lossless AKA > Pointers can be stored in an int > 2. (void*)(long)(void*) is lossless AKA > Pointers can be stored in a long > 4. (void*)(any type*)(void*) is lossless AKA > Different pointer types are equal > 8. sizeof(int) == sizeof(long) > 16. sizeof(short)*CHAR_BIT == 16 > 32. sizeof(int)*CHAR_BIT == 32 > 64. sizeof(int) == 2*sizeof(short) > 128. sizeof(long) == 2*sizeof(short) 256. sizeof(long)*CHAR_BIT == 32 -- Jonathan Geisler --