Re: [Mingw-w64-public] clang on Windows

2014-01-05 Thread Jonathan Liu
On 25/12/2013 7:31 AM, niXman wrote: > Ivan Garramona 2013-12-25 00:19: >> I'm even planning to move my projects from the buggy VC++ 2013 >> to Clang. > Why Clang? Why not GCC/MinGW-W64? > > As far as I know, Clang optimizes much worse than GCC. Small plus Clang > in that it compiles a little bit f

[Mingw-w64-public] [patch] d3dcompiler.h missing typedefs

2013-04-11 Thread Jonathan Liu
Hi, Attached is a patch to add missing typedefs to d3dcompiler.h. Regards, Jonathan Index: mingw-w64-headers/direct-x/include/d3dcompiler.h === --- mingw-w64-headers/direct-x/include/d3dcompiler.h(revision 5769) +++ mingw-w64-he

[Mingw-w64-public] Typos in d3dcompiler.h

2013-04-11 Thread Jonathan Liu
Hi, I noticed some typos in d3dcompiler.h and corrected them. See attached patch. Regards, Jonathan Index: mingw-w64-headers/direct-x/include/d3dcompiler.h === --- mingw-w64-headers/direct-x/include/d3dcompiler.h(revision 5769

Re: [Mingw-w64-public] Inconsistencies in C pow() function

2012-04-16 Thread Jonathan Liu
On 15/04/2012 1:41 AM, Kai Tietz wrote: > Hmm, well our implementation interpretes the ISO C99 definition > > "pow (x, y) signals the invalid operation exception for finite x< 0 > and finite non-integer y. Therefore has as result -Nan. Compared values are not the same (powtest.cpp:149) Expecte

Re: [Mingw-w64-public] Inconsistencies in C pow() function

2012-04-14 Thread Jonathan Liu
Attached is an updated test program. It will now show all failures at once instead of terminating after the first test failure. Regards, Jonathan #include #include #include #include #ifdef _MSC_VER #define INFINITY HUGE_VAL #define isfinite _finite #define isnan _isnan unsigned long nan[2]

Re: [Mingw-w64-public] Inconsistencies in C pow() function

2012-04-14 Thread Jonathan Liu
On 13/04/2012 9:54 PM, NightStrike wrote: > On Fri, Apr 13, 2012 at 4:39 AM, Jonathan Liu wrote: >> Visual C++ 2010 and GCC on Linux give the same expected output for these >> tests and pass. I just think it would be good if MinGW-w64 gave results >> that were more consistent

Re: [Mingw-w64-public] Inconsistencies in C pow() function

2012-04-13 Thread Jonathan Liu
Visual C++ 2010 and GCC on Linux give the same expected output for these tests and pass. I just think it would be good if MinGW-w64 gave results that were more consistent with Visual C++ 2010 and GCC on Linux. The tests are based on what Google V8 expects to be the correct output - the differen

[Mingw-w64-public] Inconsistencies in C pow() function

2012-04-12 Thread Jonathan Liu
Hi, I am getting some inconsistencies for the C pow() function between MinGW-w64 and Visual C++: compare(INFINITY, pow(-INFINITY, 3.1)); Compared values are not the same (test.cpp:145) Expected (INFINITY): 1.#INF00 Actual (pow(-INFINITY, 3.1)): -1.#IND00 compare(+INFINITY, 1.0/pow(-INFI