[llvm-commits] CVS: llvm/include/llvm/Reoptimizer/BinInterface/bitmath.h

Joel Stanley jstanley at cs.uiuc.edu
Tue Jun 24 14:49:01 PDT 2003


Changes in directory llvm/include/llvm/Reoptimizer/BinInterface:

bitmath.h updated: 1.10 -> 1.11

---
Log message:

Fix to remove warning.



---
Diffs of the changes:

Index: llvm/include/llvm/Reoptimizer/BinInterface/bitmath.h
diff -u llvm/include/llvm/Reoptimizer/BinInterface/bitmath.h:1.10 llvm/include/llvm/Reoptimizer/BinInterface/bitmath.h:1.11
--- llvm/include/llvm/Reoptimizer/BinInterface/bitmath.h:1.10	Mon Jun 23 18:31:47 2003
+++ llvm/include/llvm/Reoptimizer/BinInterface/bitmath.h	Tue Jun 24 14:48:43 2003
@@ -33,7 +33,7 @@
 #define FLD_LOWER(FLD_DEF) (0 ? FLD_DEF)
 #define MASKBELOW(V)       ((((uint64_t) 1) << V) - 1) // 64-bit '1' constant here to avoid overflow warnings
 #define MASKEQBELOW(V)	   ((1 << V) | MASKBELOW(V)) //masks off everything ABOVE
-#define RD_FLD(x, FLD)     ((x & MASKEQBELOW(FLD_UPPER(FLD)))  >> FLD_LOWER(FLD))
+#define RD_FLD(x, FLD)     (unsigned)(((x & MASKEQBELOW(FLD_UPPER(FLD)))  >> FLD_LOWER(FLD)))
 #define MK_FLD(FLD, val)   ((val << FLD_LOWER(FLD)) & MASKEQBELOW(FLD_UPPER(FLD)))
 #define MASK_FLD(FLD)      (MASKEQBELOW(FLD_UPPER(FLD)) & ~MASKBELOW(FLD_LOWER(FLD)))
 #define RM_FLD(FLD, val)   (val & ~(MASK_FLD(FLD)))





More information about the llvm-commits mailing list