Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2001 16:30:29 +1100
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        Matthew Jacob <mjacob@feral.com>
Cc:        Warner Losh <imp@harmony.village.org>, Matt Jacob <mjacob@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/alpha/include bus.h
Message-ID:  <20010111163029.B91242@gsmx07.alcatel.com.au>
In-Reply-To: <Pine.BSF.4.21.0101092200070.2888-100000@beppo.feral.com>; from mjacob@feral.com on Tue, Jan 09, 2001 at 10:04:03PM -0800
References:  <200101100441.f0A4f2s58670@harmony.village.org> <Pine.BSF.4.21.0101092200070.2888-100000@beppo.feral.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2001-Jan-09 22:04:03 -0800, Matthew Jacob <mjacob@feral.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010111163029.B91242>