[libclc] 40/79: math.h: Use logical operations instead of bit operations for readability

Andreas Boll aboll-guest at moszumanska.debian.org
Mon Mar 19 16:50:58 UTC 2018


This is an automated email from the git hooks/post-receive script.

aboll-guest pushed a commit to branch master
in repository libclc.

commit becbb8600bfe96b5d844134d039ec60089a57872
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date:   Wed Jan 31 21:53:42 2018 +0000

    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>
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@323920 91177308-0d34-0410-b5e6-96231b3b80d8
---
 generic/lib/math/math.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generic/lib/math/math.h b/generic/lib/math/math.h
index 0a10991..91d116e 100644
--- a/generic/lib/math/math.h
+++ b/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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git



More information about the Pkg-opencl-commits mailing list