Show that the bit chunks are placed starting at the least significant
bit. Select a different number, so the bit chunks have different values
and it is more obvious where they are in the encoded result.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Tested the actual numbers with
TEST(BitstreamWriterTest, emitDocSample) { SmallVector<char> Buffer; BitstreamWriter W(Buffer); W.EmitVBR(30, 4); W.FlushToWord(); EXPECT_EQ((SmallVector<char>{0b0011'1110, 0, 0, 0}), Buffer); }
in BitstreamWriterTest.cpp. Don't think it is worth keeping as we don't enforce the docs to be in sync with the unit tests.