31 "Expected hash table number of words"));
38 "Expected hash table word"));
39 for (
unsigned Idx = 0; Idx < 32; ++Idx)
40 if (Word & (1U << Idx))
41 V.
set((
I * 32) + Idx);
48 constexpr
int BitsPerWord = 8 *
sizeof(
uint32_t);
56 "Could not write linear map number of words"));
61 for (
uint32_t WordIdx = 0; WordIdx < 32; ++WordIdx, ++Idx) {
63 Word |= (1 << WordIdx);
66 return joinErrors(std::move(EC), make_error<RawError>(
68 "Could not write linear map word"));
This class represents lattice values for constants.
Error writeSparseBitVector(BinaryStreamWriter &Writer, SparseBitVector<> &Vec)
Error readInteger(T &Dest)
Read an integer of the specified endianness into Dest and update the stream's offset.
bool test(unsigned Idx) const
support::ulittle32_t Word
Error readSparseBitVector(BinaryStreamReader &Stream, SparseBitVector<> &V)
Provides write only access to a subclass of WritableBinaryStream.
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
static ErrorSuccess success()
Create a success value.
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
Error joinErrors(Error E1, Error E2)
Concatenate errors.
Lightweight error class with error context and mandatory checking.
Provides read only access to a subclass of BinaryStream.