windows and C99 math

hi, numpys no-C99 fallback keeps turning up issues in corner cases, e.g. hypot https://github.com/numpy/numpy/issues/2385 log1p https://github.com/numpy/numpy/issues/4225
these only seem to happen on windows, on linux and mac it seems to use the C99 math library just fine.
Are our binary builds for windows not correct or does windows just not support C99 math?
Hopefully it is the former. Any insight is appreciated (and patches to fix the build even more!)
Cheers, Julian

Just a guess as I don't make those binaries, but I think they are done with Visual Studio and it only support C89... We need to back port some of our c code for windows for GPU as nvcc use VS and it don't support C99.
Fred
On Mon, Jan 27, 2014 at 3:04 PM, Julian Taylor jtaylor.debian@googlemail.com wrote:
hi, numpys no-C99 fallback keeps turning up issues in corner cases, e.g. hypot https://github.com/numpy/numpy/issues/2385 log1p https://github.com/numpy/numpy/issues/4225
these only seem to happen on windows, on linux and mac it seems to use the C99 math library just fine.
Are our binary builds for windows not correct or does windows just not support C99 math?
Hopefully it is the former. Any insight is appreciated (and patches to fix the build even more!)
Cheers, Julian _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Julian Taylor jtaylor.debian@googlemail.com wrote:
Are our binary builds for windows not correct or does windows just not support C99 math?
Microsoft's C compiler does not support C99.
It is not an OS issue. Use gcc, clang or Intel icc instead, and C99 is supported.
Sturla

On Mon, Jan 27, 2014 at 8:04 PM, Julian Taylor < jtaylor.debian@googlemail.com> wrote:
hi, numpys no-C99 fallback keeps turning up issues in corner cases, e.g. hypot https://github.com/numpy/numpy/issues/2385 log1p https://github.com/numpy/numpy/issues/4225
these only seem to happen on windows, on linux and mac it seems to use the C99 math library just fine.
Are our binary builds for windows not correct or does windows just not support C99 math?
Ms compilers have not supported much of C > C89. Up to recently, they even said publicly something close to "we don't care about C, C is legacy and you should use C++": http://herbsutter.com/2012/05/03/reader-qa-what-about-vc-and-c99/
But it looks like they are finally changing their stance: http://blogs.msdn.com/b/vcblog/archive/2013/07/19/c99-library-support-in-vis...
Of course, it will be a while before we can rely on this, but hey, it only took them 14 years !
David
Hopefully it is the former. Any insight is appreciated (and patches to fix the build even more!)
Cheers, Julian _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (4)
-
David Cournapeau
-
Frédéric Bastien
-
Julian Taylor
-
Sturla Molden