summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-02 20:06:18 +0000
committerChris Lattner <sabre@nondot.org>2005-08-02 20:06:18 +0000
commitfba2e9c8f95bb7c9e0475ec407ad812ef1d9104a (patch)
treeeb9d75d65c5360a20060ca4ddb232438065c44bc
parent80e038c148080a8cdf474dc1ccc3487311408389 (diff)
downloadbcm5719-llvm-fba2e9c8f95bb7c9e0475ec407ad812ef1d9104a.tar.gz
bcm5719-llvm-fba2e9c8f95bb7c9e0475ec407ad812ef1d9104a.zip
Fix inverted conditionals
llvm-svn: 22597
-rw-r--r--llvm/include/llvm/Support/MathExtras.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h
index 99c36dfaea0..d8cdda8e668 100644
--- a/llvm/include/llvm/Support/MathExtras.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud