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: complex arithmetic in gcc (and various standards)


On Mon, 2 Oct 2006, Jan van Dijk wrote:

>  * the C99 and C++ standards say *nothing* about the details of compex 
> multiplication

The C99 standard says that real operands aren't converted to complex, but 
as I note in bug 24581, the compiler doesn't expect PLUS_EXPR and 
MULT_EXPR to have arguments of different types, so the front ends might 
need adapting to handle real * complex and real + complex specially.  
Patches welcome, see <http://gcc.gnu.org/contribute.html>.

-- 
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]