EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Bug on Pentium IOC
From: Dirk Zimoch <[email protected]>
To: Bernd Schoeneburg <[email protected]>
Cc: TECHTALK <[email protected]>
Date: Tue, 17 Dec 2002 13:40:41 +0100


Bernd Schoeneburg wrote:
Hi all,
can anyone explain this:

~(~0UL << 32)        is 0xFFFFFFFF on a Motorola VME162 i.e., which is
correct
                                the same on a Pentium is 0, which is
false!

Ideas?

Bernd

The Pentium (and all Intel x86s, I think) does all shifts mod 32. Thus (~0 << 32) is not shifted at all. => ~(~0 << 32) = ~~0 = 0

There may be other architectures that behave similar.

Dirk

--
Dr. Dirk Zimoch
Swiss Light Source
Paul Scherrer Institut
Computing and Controls
phone +41 56 310 5182
fax   +41 56 310 4413


Replies:
Re: Bug on Pentium IOC Eric Norum
References:
Bug on Pentium IOC Bernd Schoeneburg

Navigate by Date:
Prev: Bug on Pentium IOC Bernd Schoeneburg
Next: Re: Bug on Pentium IOC Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Bug on Pentium IOC Bernd Schoeneburg
Next: Re: Bug on Pentium IOC Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·