aboutsummaryrefslogtreecommitdiff
path: root/libclc
diff options
context:
space:
mode:
authorYoungsuk Kim <youngsuk.kim@hpe.com>2024-05-14 08:49:24 -0500
committerYoungsuk Kim <youngsuk.kim@hpe.com>2024-05-14 08:51:56 -0500
commite60b83a645685f22375af9bca5af6624b3a805d0 (patch)
treeaeb6955fff97661a6ed979c850d06177063b750d /libclc
parent03eba209852c769ab6993be3bc01cdcc57d787b0 (diff)
downloadllvm-e60b83a645685f22375af9bca5af6624b3a805d0.zip
llvm-e60b83a645685f22375af9bca5af6624b3a805d0.tar.gz
llvm-e60b83a645685f22375af9bca5af6624b3a805d0.tar.bz2
[libclc] Clarify condition expression (NFC)
Closes #91188
Diffstat (limited to 'libclc')
-rw-r--r--libclc/generic/lib/math/log_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libclc/generic/lib/math/log_base.h b/libclc/generic/lib/math/log_base.h
index 2558f01..4e20329 100644
--- a/libclc/generic/lib/math/log_base.h
+++ b/libclc/generic/lib/math/log_base.h
@@ -209,7 +209,7 @@ log(double x)
const double log_thresh1 = 0x1.e0faap-1;
const double log_thresh2 = 0x1.1082cp+0;
- int is_near = x >= log_thresh1 & x <= log_thresh2;
+ bool is_near = x >= log_thresh1 && x <= log_thresh2;
// Near 1 code
double r = x - 1.0;