Re: [Mingw-w64-public] Wrong quotient results of `remquo()`?

2016-09-12 Thread lhmouse
Reliable results could usually be generated using GCC's constant folding. For example, the following program: #include int main(){ const double x = 10.001000, y = -1.299000; int quo; double rem = __builtin_remquo(x, y, &quo); printf("rem = %f, quo = %d\n",

Re: [Mingw-w64-public] Wrong quotient results of `remquo()`?

2016-09-12 Thread K. Frank
Hello Lefty! I do think you have found a bug here, and it does appear to be in the mingw-w64 code. Disclaimer: I don't understand this completely. Further comments in line, below. On Tue, Sep 6, 2016 at 11:52 PM, lhmouse wrote: > More likely a bug in mingw-w64: > > #include > #includ