We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents df17338 + e626565 commit 93b0512Copy full SHA for 93b0512
src/CodeGen_OpenCL_Dev.cpp
@@ -353,7 +353,9 @@ void CodeGen_OpenCL_Dev::init_module() {
353
src_stream << "#pragma OPENCL FP_CONTRACT ON\n";
354
355
// Write out the Halide math functions.
356
- src_stream << "float nan_f32() { return NAN; }\n"
+ src_stream << "float maxval_f32() {return FLT_MAX;}\n"
357
+ << "float minval_f32() {return -FLT_MAX;}\n"
358
+ << "float nan_f32() { return NAN; }\n"
359
<< "float neg_inf_f32() { return -INFINITY; }\n"
360
<< "float inf_f32() { return INFINITY; }\n"
361
<< "float float_from_bits(unsigned int x) {return as_float(x);}\n"
0 commit comments