aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-19 03:18:22 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-19 03:18:22 +0000
commitd81b0659501c66b2fec2009e8a999c3db6a1f95c (patch)
treec7c250ef456a8776bd5c020fac5127295f4d9433
parentf99a0ac0dcdce617df7af21596ceb8dc76b5839c (diff)
Add some new constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34398 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/APInt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 661276e078..e38b7bc996 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -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.