OSDN Git Service

Add some new constants.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 19 Feb 2007 03:18:22 +0000 (03:18 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 19 Feb 2007 03:18:22 +0000 (03:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34398 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APInt.h

index 661276e..e38b7bc 100644 (file)
@@ -72,7 +72,8 @@ public:
 
   /// This enum is just used to hold a constant we needed for APInt.
   enum {
-    APINT_BITS_PER_WORD = sizeof(uint64_t) * 8
+    APINT_BITS_PER_WORD = sizeof(uint64_t) * 8,
+    APINT_WORD_SIZE = sizeof(uint64_t)
   };
 
   /// Here one word's bitwidth equals to that of uint64_t.