Workaround a misscompilation bug with Intel Compiler 2019

This commit is contained in:
Laurent Rineau 2018-09-25 16:21:58 +02:00
parent c6fe4b4e66
commit f1821f2101
1 changed files with 7 additions and 1 deletions

View File

@ -302,7 +302,13 @@ struct Mpzf {
data()[-1] = mini;
}
void clear(){
while(*--data()==0); // in case we skipped final zeroes
// while(*--data()==0);
// This line gave a misscompilation by Intel Compiler 2019
// (19.0.0.117). I replaced it by the following two lines:
// -- Laurent Rineau, sept. 2018
--data();
while(*data()==0) { --data(); } // in case we skipped final zeroes
#ifdef CGAL_MPZF_USE_CACHE
if (data() == cache) return;
#endif