[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 2 13:06:30 PDT 2005
Changes in directory llvm/include/llvm/Support:
MathExtras.h updated: 1.18 -> 1.19
---
Log message:
Fix inverted conditionals
---
Diffs of the changes: (+2 -2)
MathExtras.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Support/MathExtras.h
diff -u llvm/include/llvm/Support/MathExtras.h:1.18 llvm/include/llvm/Support/MathExtras.h:1.19
--- llvm/include/llvm/Support/MathExtras.h:1.18 Tue Aug 2 14:21:51 2005
+++ llvm/include/llvm/Support/MathExtras.h Tue Aug 2 15:06:18 2005
@@ -86,7 +86,7 @@
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 @@
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);
More information about the llvm-commits
mailing list