We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1251e56 commit 9d62247Copy full SHA for 9d62247
sycl/test/devicelib/math_utils.hpp
@@ -7,10 +7,12 @@ bool is_about_FP(T x, T y) {
7
// At least one input is nan
8
if (std::isnan(x) || std::isnan(y))
9
return std::isnan(x) && std::isnan(y);
10
- // At least one input is inf
+
11
+ // At least one input is inf
12
else if (std::isinf(x) || std::isinf(y))
13
return (x == y);
- // two finite
14
15
+ // two finite
16
else {
17
if (x != 0 && y != 0) {
18
T max_v = std::fmax(std::abs(x), std::abs(y));
0 commit comments