From 1c4d768bc1b400ab40c10715df98d0b2122bcd66 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 10 Nov 2020 13:07:42 -0800 Subject: Fix IR serialization to use variable length encoding for opcode. (#1599) * Fix IR serialization to use 16bits for opcode. * Undo accidental comment change. * Use variable length encoding for opcode. * Fixing issues --- source/core/slang-byte-encode-util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/core/slang-byte-encode-util.h') diff --git a/source/core/slang-byte-encode-util.h b/source/core/slang-byte-encode-util.h index cb601d522..728f9ac2f 100644 --- a/source/core/slang-byte-encode-util.h +++ b/source/core/slang-byte-encode-util.h @@ -9,6 +9,7 @@ struct ByteEncodeUtil { enum { + kMaxLiteEncodeUInt16 = 3, /// One byte for prefix, the remaining 2 bytes hold the value kMaxLiteEncodeUInt32 = 5, /// One byte for prefix, the remaining 4 bytes hold the value // Cut values for 'Lite' encoding style kLiteCut1 = 185, -- cgit v1.2.3