This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Complex integer division
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Joe Buck <jbuck at synopsys dot COM>
- Cc: Bernd Schmidt <bernds at redhat dot com>, <gcc at gcc dot gnu dot org>
- Date: Mon, 19 Nov 2001 20:38:49 +0000 (GMT)
- Subject: Re: Complex integer division
On Mon, 19 Nov 2001, Joe Buck wrote:
> The only problematic operation is division, as complex ints are closed
> (modulo overflow) for +, -, and *. So deprecate only the problematic
> operation.
Multiplication could cause problems as well, since GCC might optimize
intermediate computations on the basis that signed integer overflow is
undefined and so fail to produce the correct answer when that is within
range.
--
Joseph S. Myers
jsm28@cam.ac.uk