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...@gmail.com>
Signed-off-by: Jan Vesely <jan.ves...@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)


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to