[Mesa-dev] [PATCH] gallium/util: Use GCC built-in functions for NaN and infinity.
Vinson Lee
vlee at freedesktop.org
Wed Aug 1 22:07:29 PDT 2012
On Wed, Aug 1, 2012 at 2:50 PM, Matt Turner <mattst88 at gmail.com> wrote:
>
> Indeed. I wondered the same. The use of NAN/INF are inside an #if
> !defined(PIPE_CC_MSVC) block, so MSVC can't be the problem. NAN and
> INFINITY are c99, which I'm not sure we can assume. Then again, if not
> MSVC, what compiler is the problem?
>
> Vinson, does the attached patch work for you?
Yes, the patch works for me. I tested the patch with the Intel C
Compiler and Oracle Studio C Compiler as well. Both of those compilers
have NAN and INFINITY.
Tested-by: Vinson Lee <vlee at freedesktop.org>
More information about the mesa-dev
mailing list