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

2016-09-12 Thread lhmouse
its into `quo`. -- Best regards, lh_mouse 2016-09-12 - 发件人:"K. Frank" <kfrank2...@gmail.com> 发送日期:2016-09-12 22:23 收件人:mingw64 抄送: 主题:Re: [Mingw-w64-public] Wrong quotient results of

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

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

2016-09-06 Thread lhmouse
More likely a bug in mingw-w64: #include #include volatile double x = 10.001000, y = -1.299000; int main(){ int quo; double rem = remquo(x, y, ); printf("rem = %f, quo = %d\n", rem, quo); } With mingw-w64 this program gives the following output:

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

2016-09-05 Thread lhmouse
gards, lh_mouse 2016-09-06 - 发件人:"lhmouse"<lh_mo...@126.com> 发送日期:2016-09-05 23:08 收件人:mingw-w64-public,lhmouse 抄送: 主题:Re: [Mingw-w64-public] Wrong quotient results of `remquo()`? Found an example on cppreference: http://en.cppreference.

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

2016-09-05 Thread lhmouse
--- 发件人:"lhmouse"<lh_mo...@126.com> 发送日期:2016-09-05 22:27 收件人:mingw-w64-public 抄送: 主题:[Mingw-w64-public] Wrong quotient results of `remquo()`? Hello guys, I am testing my `remquo()` implementation when I find that `remquo` on Linux (using glibc) and on Windows (using mingw-w64) gene

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

2016-09-05 Thread lhmouse
Hello guys, I am testing my `remquo()` implementation when I find that `remquo` on Linux (using glibc) and on Windows (using mingw-w64) generate different results. I don't think this is the correct behavior. Any ideas? The testcases in file `remquo.txt` the attached zip file was generated on my