gallium/util: Use GCC built-in functions for NaN and infinity.
authorVinson Lee <vlee@freedesktop.org>
Sun, 29 Jul 2012 22:12:05 +0000 (15:12 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 31 Jul 2012 06:27:19 +0000 (23:27 -0700)
commit2faa2b4f7e4d5a230d5e2ec55bea06eab8dd8fba
tree70b4c6a8b2c03d6e5eda9a2a0b6eaafd8e2f2d74
parent3d0b54c7c6021becb3cae9245fc8f88a0f0f2be9
gallium/util: Use GCC built-in functions for NaN and infinity.

This patch fixes this build failure with Intel Compiler.

src/gallium/auxiliary/util/u_format_tests.c(903): error: floating-point operation result is out of range
     {PIPE_FORMAT_R16_FLOAT, PACKED_1x16(0xffff), PACKED_1x16(0x7c01), UNPACKED_1x1(        NAN, 0.0, 0.0, 1.0)},

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_format_tests.c