[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h

Jeff Cohen jeffc at jolt-lang.org
Sun Mar 4 16:02:02 PST 2007



Changes in directory llvm/include/llvm/Support:

MathExtras.h updated: 1.42 -> 1.43
---
Log message:

Unbreak VC++ build.

---
Diffs of the changes:  (+1 -1)

 MathExtras.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Support/MathExtras.h
diff -u llvm/include/llvm/Support/MathExtras.h:1.42 llvm/include/llvm/Support/MathExtras.h:1.43
--- llvm/include/llvm/Support/MathExtras.h:1.42	Sun Mar  4 17:33:03 2007
+++ llvm/include/llvm/Support/MathExtras.h	Sun Mar  4 18:00:41 2007
@@ -255,7 +255,7 @@
   uint64_t v = Value - ((Value >> 1) & 0x5555555555555555ULL);
   v = (v & 0x3333333333333333ULL) + ((v >> 2) & 0x3333333333333333ULL);
   v = (v + (v >> 4)) & 0x0F0F0F0F0F0F0F0FULL;
-  return (uint64_t)(v * 0x0101010101010101ULL) >> 56;
+  return unsigned((uint64_t)(v * 0x0101010101010101ULL) >> 56);
 #endif
 }
 






More information about the llvm-commits mailing list