[libclc] r323920 - math.h: Use logical operations instead of bit operations for readability
Jan Vesely via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 31 13:53:42 PST 2018
Author: jvesely
Date: Wed Jan 31 13:53:42 2018
New Revision: 323920
URL: http://llvm.org/viewvc/llvm-project?rev=323920&view=rev
Log:
math.h: Use logical operations instead of bit operations for readability
Trivial.
Reported-by: Roman Lebedev <lebedev.ri at gmail.com>
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Modified:
libclc/trunk/generic/lib/math/math.h
Modified: libclc/trunk/generic/lib/math/math.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/math/math.h?rev=323920&r1=323919&r2=323920&view=diff
==============================================================================
--- libclc/trunk/generic/lib/math/math.h (original)
+++ libclc/trunk/generic/lib/math/math.h Wed Jan 31 13:53:42 2018
@@ -31,7 +31,7 @@
#define PNOR 0x100
#define PINF 0x200
-#if (defined __AMDGCN__ | defined __R600__) & !defined __HAS_FMAF__
+#if (defined __AMDGCN__ || defined __R600__) && !defined __HAS_FMAF__
#define HAVE_HW_FMA32() (0)
#else
#define HAVE_HW_FMA32() (1)
More information about the cfe-commits
mailing list