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
<2012>
2013
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
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|