We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3bb14f commit 65a75fbCopy full SHA for 65a75fb
dpnp/backend/kernels/elementwise_functions/ldexp.hpp
@@ -41,7 +41,15 @@ struct LdexpFunctor
41
42
resT operator()(const argT1 &in1, const argT2 &in2) const
43
{
44
- return sycl::ldexp(in1, in2);
+ if (((int)in2) == in2) {
45
+ return sycl::ldexp(in1, in2);
46
+ }
47
+
48
+ // a separate handling for large integer values
49
+ if (in2 > 0) {
50
+ return std::numeric_limits<resT>::infinity();
51
52
+ return resT(0);
53
}
54
};
55
} // namespace dpnp::kernels::ldexp
0 commit comments