diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-02 20:06:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-02 20:06:18 +0000 |
commit | 591083a5c7deeb79e988182285c45bf68b9c68a7 (patch) | |
tree | 7fd648f2ba82a233f7948293afed8ebfcc34a51f /include/llvm/Support/MathExtras.h | |
parent | 9e17df80cae163e357e8d09deb0b51a4d0c52823 (diff) |
Fix inverted conditionals
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r-- | include/llvm/Support/MathExtras.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 99c36dfaea..d8cdda8e66 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -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); |