[Beignet] Fix definition of FLT_MIN/FLT_MAX for clang-3.8 compilation

Andrew Lavin aj.lavin at gmail.com
Thu May 26 16:18:32 UTC 2016


Using clang-3.8, I need the attached patch in order to compile beignet.
Otherwise I get lots of errors that look like:

/home/andrew/Downloads/beignet-intel_subgroups/utests/builtin_exp.cpp:18:48:
error:
      non-constant-expression cannot be narrowed from type 'double' to
'float' in initializer list
      [-Wc++11-narrowing]
const float input_data[] = {FLT_MAX, -FLT_MAX, FLT_MIN, -FLT_MIN, 80, -80,
3.14, -3.14, -0.5, 0.5, ...

- Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/beignet/attachments/20160526/69f6046f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Changed-ldexp-to-ldexpf-when-defining-float-min-max.patch
Type: text/x-patch
Size: 1174 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/beignet/attachments/20160526/69f6046f/attachment.bin>


More information about the Beignet mailing list