From a75677c2b7d63475d235b684e4bd52955439892e Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Wed, 31 Jan 2018 21:53:42 +0000 Subject: [PATCH] math.h: Use logical operations instead of bit operations for readability Trivial. Reported-by: Roman Lebedev Signed-off-by: Jan Vesely llvm-svn: 323920 --- libclc/generic/lib/math/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclc/generic/lib/math/math.h b/libclc/generic/lib/math/math.h index 0a109910bef2..91d116e95d6f 100644 --- a/libclc/generic/lib/math/math.h +++ b/libclc/generic/lib/math/math.h @@ -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)