From owner-cvs-all Wed Jan 10 21:31:38 2001 Delivered-To: cvs-all@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id 44FD437B401; Wed, 10 Jan 2001 21:31:10 -0800 (PST) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id QAA04882; Thu, 11 Jan 2001 16:30:32 +1100 (EDT) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37640) with ESMTP id <01JYSD1YQSMO90I2EP@cim.alcatel.com.au>; Thu, 11 Jan 2001 16:30:31 +1100 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.0/8.11.0) id f0B5UTo93224; Thu, 11 Jan 2001 16:30:29 +1100 (EST envelope-from jeremyp) Content-return: prohibited Date: Thu, 11 Jan 2001 16:30:29 +1100 From: Peter Jeremy Subject: Re: cvs commit: src/sys/alpha/include bus.h In-reply-to: ; from mjacob@feral.com on Tue, Jan 09, 2001 at 10:04:03PM -0800 To: Matthew Jacob Cc: Warner Losh , Matt Jacob , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Mail-followup-to: Matthew Jacob , Warner Losh , Matt Jacob , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Message-id: <20010111163029.B91242@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <200101100441.f0A4f2s58670@harmony.village.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 2001-Jan-09 22:04:03 -0800, Matthew Jacob wrote: > > >> In message <200101091817.f09IHng10622@freefall.freebsd.org> Matt Jacob writes: >> : me that BUS_SPACE_UNRESTRICTED should b ~0UL, not ~0. >> >> Would this impact the 10E6 uses of ~0 in the bus_alloc_resource calls >> we have? > >int foo() >{ > bar(~0); >} >int zoo() >{ > bar1(~0UL); >} ... >Sorta looks the same to me.... I don't think that's a valid test. A more reasonable test would be something like unsigned long foo, bar; 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. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message