diff options
author | Vinson Lee <[email protected]> | 2016-05-09 16:02:12 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2016-05-10 17:11:05 -0700 |
commit | 8d639138c712c5bbe0b9ea8adbc810b23a2e8d1b (patch) | |
tree | 49dc6ec905632fc0ba5aabb12068eaefa108de98 /src/gallium/auxiliary/gallivm/lp_bld_init.c | |
parent | a5660bf1f879ba69a750c2ef3a90efb14e037625 (diff) |
swr: [rasterizer] Include cmath for std::isnan and std::isinf.
This patch fixes this build error.
CXX rasterizer/memory/libswrAVX_la-ClearTile.lo
In file included from rasterizer/memory/ClearTile.cpp:34:0:
./rasterizer/memory/Convert.h: In function ‘uint16_t Convert32To16Float(float)’:
./rasterizer/memory/Convert.h:170:9: error: ‘__builtin_isnan’ is not a member of ‘std’
if (std::isnan(val))
^
./rasterizer/memory/Convert.h:170:9: note: suggested alternative:
<built-in>: note: ‘__builtin_isnan’
./rasterizer/memory/Convert.h:176:14: error: ‘__builtin_isinf_sign’ is not a member of ‘std’
else if (std::isinf(val))
^
./rasterizer/memory/Convert.h:176:14: note: suggested alternative:
<built-in>: note: ‘__builtin_isinf_sign’
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95180
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_init.c')
0 files changed, 0 insertions, 0 deletions