This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: weird optimization in sin+cos, x86 backend
- From: Michael Matz <matz at suse dot de>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: gcc at gcc dot gnu dot org, vincent+gcc at vinc17 dot org, konstantin dot vladimirov at gmail dot com
- Date: Fri, 3 Feb 2012 17:47:38 +0100 (CET)
- Subject: Re: weird optimization in sin+cos, x86 backend
- References: <20120203164005.CD53D3BE18@mailhost.lps.ens.fr>
On Fri, 3 Feb 2012, Dominique Dhumieres wrote:
> Note that sqrt(2.0)*sin(4.47460300787e+182+pi/4) gives a diffeent value
> for the sum.
In double: 4.47460300787e+182 + pi/4 == 4.47460300787e+182
Ciao,
Michael.