Re: Division in C++

Gabriel Dos Reis <gdr@integrable-solutions.net>
12 Jul 2005 06:45:32 -0400

          From comp.compilers

Related articles
Division in C++ garms@gmx.de (Onno Garms) (2005-07-11)
Re: Division in C++ antounk@comcast.net (Antoun Kanawati) (2005-07-12)
Re: Division in C++ qrczak@knm.org.pl (Marcin 'Qrczak' Kowalczyk) (2005-07-12)
Re: Division in C++ tmk@netvision.net.il (Michael Tiomkin) (2005-07-12)
Re: Division in C++ henry@spsystems.net (2005-07-12)
Re: Division in C++ fw@deneb.enyo.de (Florian Weimer) (2005-07-12)
Re: Division in C++ gdr@integrable-solutions.net (Gabriel Dos Reis) (2005-07-12)
Re: Division in C++ qrczak@knm.org.pl (Marcin 'Qrczak' Kowalczyk) (2005-07-12)
Re: Division in C++ garms@gmx.de (Onno Garms) (2005-07-17)
Re: Division in C++ poenitz@htwm.de (Andre Poenitz) (2005-08-10)
| List of all articles for this month |
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
Newsgroups: comp.compilers,gnu.g++.help
Date: 12 Jul 2005 06:45:32 -0400
Organization: Integrable Solutions
References: 05-07-046 05-07-051
Keywords: GCC, C, arithmetic
Posted-Date: 12 Jul 2005 06:45:32 EDT

"Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl> writes:


| > - if (static_cast<double>(a/b)<=c) endless loop
|
| This looks like a bug in the compiler, a cast should cut off excess
| precision.
|
| gcc has an option to turn this off: -ffloat-store


But, it does not work all the time. Search for GCC mailing list
archives and bug database.


--
                                                                                                              Gabriel Dos Reis
                                                                                      gdr@integrable-solutions.net



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.