[libclc] e60b83a - [libclc] Clarify condition expression (NFC)
Youngsuk Kim via cfe-commits
cfe-commits at lists.llvm.org
Tue May 14 06:52:08 PDT 2024
Author: Youngsuk Kim
Date: 2024-05-14T08:51:56-05:00
New Revision: e60b83a645685f22375af9bca5af6624b3a805d0
URL: https://github.com/llvm/llvm-project/commit/e60b83a645685f22375af9bca5af6624b3a805d0
DIFF: https://github.com/llvm/llvm-project/commit/e60b83a645685f22375af9bca5af6624b3a805d0.diff
LOG: [libclc] Clarify condition expression (NFC)
Closes #91188
Added:
Modified:
libclc/generic/lib/math/log_base.h
Removed:
################################################################################
diff --git a/libclc/generic/lib/math/log_base.h b/libclc/generic/lib/math/log_base.h
index 2558f016f60be..4e20329f641bb 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;
More information about the cfe-commits
mailing list