------- Comment #16 from singler at gcc dot gnu dot org  2009-10-22 16:41 
-------
(In reply to comment #14)
> (In reply to comment #10)
> 
> > However, I do not fully trust the double arithmetics yet, although some test
> > cases work.  Does anybody else know a better way to avoid an overflow in 
> > ((a *
> > b) / c) with only integer arithmetics and normal rounding?
> 
> you can use a 128-bit integer type on x86-64.

Very good idea.
Do you know a good #ifdef clause to check its availability.  Is it really just
x64-64?
Also, I probably want to use it only when really needed, because I assume it to
be implemented in software, in particular the division.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40852

Reply via email to