We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4c9f39 commit 93ab50aCopy full SHA for 93ab50a
llvm/include/llvm/ADT/APInt.h
@@ -79,13 +79,11 @@ class [[nodiscard]] APInt {
79
public:
80
typedef uint64_t WordType;
81
82
- /// This enum is used to hold the constants we needed for APInt.
83
- enum : unsigned {
84
- /// Byte size of a word.
85
- APINT_WORD_SIZE = sizeof(WordType),
86
- /// Bits in a word.
87
- APINT_BITS_PER_WORD = APINT_WORD_SIZE * CHAR_BIT
88
- };
+ /// Byte size of a word.
+ static constexpr unsigned APINT_WORD_SIZE = sizeof(WordType);
+
+ /// Bits in a word.
+ static constexpr unsigned APINT_BITS_PER_WORD = APINT_WORD_SIZE * CHAR_BIT;
89
90
enum class Rounding {
91
DOWN,
0 commit comments