complex arithmetic in gcc (and various standards)
Joseph S. Myers
joseph@codesourcery.com
Mon Oct 2 10:57:00 GMT 2006
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
More information about the Gcc
mailing list