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


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