[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GUB and mpfr/mpc
From: |
Masamichi HOSODA |
Subject: |
Re: GUB and mpfr/mpc |
Date: |
Fri, 05 Dec 2014 19:44:11 +0900 (JST) |
>>> Also, the mention of optimization reminds me of one of the horrors of
>>> floating point types: a value in a register can quietly be changed when it
>>> is written to memory. Take a look at some of the “myths” in section 1 of
>>> https://hal.archives-ouvertes.fr/hal-00128124/en/ .
> […]
>> I think that floating point can be used as long as it's used correct.
>>
>> operator== shouldn't be used for comparison of floating point values.
>> operator!= shouldn't be used too.
>> operator< and operator> may be used.
>
> The issue is more complex than that. Sit down and try this:
[...]
> Add looping and you’ve got fatal issues. (And if you’re like me, steam will
> erupt from your ears any second now...)
You're right of course.
A floating point operation has a margin of error always.
When the optimization is different, the margin of error may be also different,
because the bit width of floating point value is different
in a register and a memory.
Therefore, robust treating for margin of error is necessary.
- Re: GUB and mpfr/mpc, (continued)
- Re: GUB and mpfr/mpc, Trevor Daniels, 2014/12/01
- Re: GUB and mpfr/mpc, Masamichi HOSODA, 2014/12/02
- Re: GUB and mpfr/mpc, David Kastrup, 2014/12/02
- Re: GUB and mpfr/mpc, Masamichi HOSODA, 2014/12/03
- Re: GUB and mpfr/mpc, Dan Eble, 2014/12/04
- Re: GUB and mpfr/mpc, Dan Eble, 2014/12/04
- Re: GUB and mpfr/mpc, Masamichi HOSODA, 2014/12/04
- Re: GUB and mpfr/mpc, Masamichi HOSODA, 2014/12/04
- Re: GUB and mpfr/mpc, Dan Eble, 2014/12/04
- Re: GUB and mpfr/mpc,
Masamichi HOSODA <=
- Re: GUB and mpfr/mpc, David Kastrup, 2014/12/05
- Re: GUB and mpfr/mpc, Dan Eble, 2014/12/05
- Re: GUB and mpfr/mpc, David Kastrup, 2014/12/06
- Re: GUB and mpfr/mpc, Dan Eble, 2014/12/06
- Re: GUB and mpfr/mpc, Masamichi HOSODA, 2014/12/08
- Re: GUB and mpfr/mpc, David Kastrup, 2014/12/08
- Re: GUB and mpfr/mpc, Dan Eble, 2014/12/08
- Re: GUB and mpfr/mpc, Keith OHara, 2014/12/21
Re: GUB and mpfr/mpc, Masamichi Hosoda, 2014/12/28