From owner-cvs-all Wed Jan 10 21:42:45 2001 Delivered-To: cvs-all@freebsd.org Received: from harmony.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id CA24237B401; Wed, 10 Jan 2001 21:42:23 -0800 (PST) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.11.1) with ESMTP id f0B5g9s69778; Wed, 10 Jan 2001 22:42:10 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200101110542.f0B5g9s69778@harmony.village.org> To: Peter Jeremy Subject: Re: cvs commit: src/sys/alpha/include bus.h Cc: Matthew Jacob , Matt Jacob , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Thu, 11 Jan 2001 16:30:29 +1100." <20010111163029.B91242@gsmx07.alcatel.com.au> References: <20010111163029.B91242@gsmx07.alcatel.com.au> <200101100441.f0A4f2s58670@harmony.village.org> Date: Wed, 10 Jan 2001 22:42:09 -0700 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010111163029.B91242@gsmx07.alcatel.com.au> Peter Jeremy writes: : fun() : { : foo = bar & ~0; : } : : Unfortunately, I don't have a functional FreeBSD/Alpha box right now, : but both Compaq CC and gcc-2.8.1 generate "foo = bar". I'm not sure : that this behaviour makes sense. Likely because ~0 is signed, and signed extended in the promotion from int to unsigned long. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message