This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Mixed mode __complex__ arithmetic
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>, Richard Guenther <rguenther at suse dot de>
- Date: Thu, 16 Sep 2010 15:26:46 +0000 (UTC)
- Subject: Re: Mixed mode __complex__ arithmetic
- References: <4C920917.3000503@oracle.com>
On Thu, 16 Sep 2010, Paolo Carlini wrote:
> Hi,
>
> I have a patch in testing which streamlines a bit <complex> and wanted
> to make sure we are supporting well mixed-mode __complex__ arithmetic, like:
>
> __complex__ double cd1;
> __complex__ float cf1;
>
> cd1 *= cf1;
>
> are we aware of any special problem in this area?
I am not aware of any problems. The complex float value will be converted
to complex double as required by C99.
--
Joseph S. Myers
joseph@codesourcery.com