diff options
author | Youngsuk Kim <youngsuk.kim@hpe.com> | 2024-05-14 08:49:24 -0500 |
---|---|---|
committer | Youngsuk Kim <youngsuk.kim@hpe.com> | 2024-05-14 08:51:56 -0500 |
commit | e60b83a645685f22375af9bca5af6624b3a805d0 (patch) | |
tree | aeb6955fff97661a6ed979c850d06177063b750d /libclc | |
parent | 03eba209852c769ab6993be3bc01cdcc57d787b0 (diff) | |
download | llvm-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.h | 2 |
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; |