EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: calc VAL field not updating from bi VAL field
From: Eric Norum <[email protected]>
To: Maren Purves <[email protected]>
Cc: [email protected]
Date: Wed, 30 May 2012 12:59:29 -0700
Perhaps, but I've never seen a machine where the following code snippet would print…. (even if the variables were made volatile to ensure that the loads and stores actually occurred)….


	int a, b;
	double x;

	a = 1;
	x = a;
	b = x;
	if (a != b) printf("THIS IS A REALY BAD MACHINE!\n");


On May 30, 2012, at 12:43 PM, Maren Purves wrote:

> Eric Norum wrote:
>> On May 30, 2012, at 10:25 AM, Tim Mooney wrote:
>> 
>>>> …..
>>> 
>>> It seems that the integer to double conversion really is not exact
>>> for 1.
>> 
>> That seems like a pretty huge flaw in the architecture!  I've never
>> encountered a machine with arithmetic that bad!
> 
> I have experienced very bad rounding errors (in a gensub, in C code)
> on a ppc604/mv5100 - to the point that I had to re-order the arithmetic.
> Bad arithmetic isn't unheard of.
> 
> Aloha,
> Maren

-- 
Eric Norum
[email protected]






References:
Re: calc VAL field not updating from bi VAL field Tim Mooney
Re: calc VAL field not updating from bi VAL field Eric Norum
Re: calc VAL field not updating from bi VAL field Maren Purves

Navigate by Date:
Prev: Re: calc VAL field not updating from bi VAL field Maren Purves
Next: Re: calc VAL field not updating from bi VAL field J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: calc VAL field not updating from bi VAL field Maren Purves
Next: Re: calc VAL field not updating from bi VAL field J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·