]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/BrotliCompress/enc/bit_cost.c
BaseTools: Copy Brotli algorithm 3rd party source code for tool
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / enc / bit_cost.c
diff --git a/BaseTools/Source/C/BrotliCompress/enc/bit_cost.c b/BaseTools/Source/C/BrotliCompress/enc/bit_cost.c
new file mode 100644 (file)
index 0000000..614246c
--- /dev/null
@@ -0,0 +1,35 @@
+/* Copyright 2013 Google Inc. All Rights Reserved.\r
+\r
+   Distributed under MIT license.\r
+   See file LICENSE for detail or copy at https://opensource.org/licenses/MIT\r
+*/\r
+\r
+/* Functions to estimate the bit cost of Huffman trees. */\r
+\r
+#include "./bit_cost.h"\r
+\r
+#include "../common/constants.h"\r
+#include "../common/types.h"\r
+#include "./fast_log.h"\r
+#include "./histogram.h"\r
+#include "./port.h"\r
+\r
+#if defined(__cplusplus) || defined(c_plusplus)\r
+extern "C" {\r
+#endif\r
+\r
+#define FN(X) X ## Literal\r
+#include "./bit_cost_inc.h"  /* NOLINT(build/include) */\r
+#undef FN\r
+\r
+#define FN(X) X ## Command\r
+#include "./bit_cost_inc.h"  /* NOLINT(build/include) */\r
+#undef FN\r
+\r
+#define FN(X) X ## Distance\r
+#include "./bit_cost_inc.h"  /* NOLINT(build/include) */\r
+#undef FN\r
+\r
+#if defined(__cplusplus) || defined(c_plusplus)\r
+}  /* extern "C" */\r
+#endif\r