Fix inverted conditionals
authorChris Lattner <sabre@nondot.org>
Tue, 2 Aug 2005 20:06:18 +0000 (20:06 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 2 Aug 2005 20:06:18 +0000 (20:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22597 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/MathExtras.h

index 99c36dfaea08354beaa8a6f788239a38ba207e86..d8cdda8e6684f6263a7ff20d0bb7c7d45adf0ca3 100644 (file)
@@ -86,7 +86,7 @@ inline unsigned CountLeadingZeros_32(unsigned Value) {
   unsigned Count; // result
   #if __GNUC__ >= 4
     // PowerPC is defined for __builtin_clz(0)
-    #if defined(__ppc__) || defined(__ppc64__)
+    #if !defined(__ppc__) && !defined(__ppc64__)
       if (!Value) return 32;
     #endif
     Count = __builtin_clz(Value);
@@ -113,7 +113,7 @@ inline unsigned CountLeadingZeros_64(uint64_t Value) {
   unsigned Count; // result
   #if __GNUC__ >= 4
     // PowerPC is defined for __builtin_clzll(0)
-    #if defined(__ppc__) || defined(__ppc64__)
+    #if !defined(__ppc__) && !defined(__ppc64__)
       if (!Value) return 64;
     #endif
     Count = __builtin_clzll(Value);