Skip to content

Commit 5a5f2e6

Browse files
committed
Use std::numeric_limits<Tp>::infinity() instead of HUGE_VAL
1 parent a4f86b5 commit 5a5f2e6

File tree

1 file changed

+2
-2
lines changed
  • dpnp/backend/kernels/elementwise_functions

1 file changed

+2
-2
lines changed

dpnp/backend/kernels/elementwise_functions/erfcx.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#pragma once
3030

31-
#include <cmath>
31+
#include <limits>
3232
#include <sycl/sycl.hpp>
3333

3434
namespace dpnp::kernels::erfs::impl
@@ -1646,7 +1646,7 @@ Tp erfcx(Tp x)
16461646
}
16471647

16481648
return x < -26.7
1649-
? std::HUGE_VAL
1649+
? std::numeric_limits<Tp>::infinity()
16501650
: (x < -6.1 ? 2 * sycl::exp(x * x)
16511651
: 2 * sycl::exp(x * x) - erfcx_y100(400 / (4 - x)));
16521652
}

0 commit comments

Comments
 (0)