Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Unified Diff: third_party/brotli/common/dictionary.c

Issue 2537133002: Update brotli to v1.0.0-snapshot. (Closed)
Patch Set: Fixed typo Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/brotli/common/dictionary.h ('k') | third_party/brotli/common/version.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/brotli/common/dictionary.c
diff --git a/third_party/brotli/dec/dictionary.c b/third_party/brotli/common/dictionary.c
similarity index 99%
rename from third_party/brotli/dec/dictionary.c
rename to third_party/brotli/common/dictionary.c
index f8f58575c0eec126823bec7358a730af52ca320d..7e6bac126f2b5897566eb3b6e435d12b879e23d2 100644
--- a/third_party/brotli/dec/dictionary.c
+++ b/third_party/brotli/common/dictionary.c
@@ -10,9 +10,17 @@
extern "C" {
#endif
-/* In case of multiple definition linker error with dictionary.cc from the
- encoder: include only one of enc/dictionary.cc or dec/dictionary.c in a
- target using both enc and dec. */
+const uint32_t kBrotliDictionaryOffsetsByLength[] = {
+ 0, 0, 0, 0, 0, 4096, 9216, 21504, 35840, 44032, 53248, 63488, 74752, 87040,
+ 93696, 100864, 104704, 106752, 108928, 113536, 115968, 118528, 119872, 121280,
+ 122016
+};
+
+const uint8_t kBrotliDictionarySizeBitsByLength[] = {
+ 0, 0, 0, 0, 10, 10, 11, 11, 10, 10, 10, 10, 10,
+ 9, 9, 8, 7, 7, 8, 7, 7, 6, 6, 5, 5,
+};
+
const uint8_t kBrotliDictionary[122784] = {
0x74, 0x69, 0x6d, 0x65, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x66, 0x65, 0x6c,
0x65, 0x66, 0x74, 0x62, 0x61, 0x63, 0x6b, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x61,
« no previous file with comments | « third_party/brotli/common/dictionary.h ('k') | third_party/brotli/common/version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698