This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mixed mode __complex__ arithmetic


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]