summaryrefslogtreecommitdiffstats
path: root/Utilities/cmzstd/lib/dictBuilder/cover.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-14 11:45:49 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-10-14 11:46:02 (GMT)
commit1c81cd9e0b663ab9243c962ebdeb3b4305e96ed3 (patch)
tree01d9480257090fab668ca9381ccb51e99004fbdd /Utilities/cmzstd/lib/dictBuilder/cover.h
parent88b77f7ac63a927a721f1701c255d933a5bb1257 (diff)
parentddced0c6b6e6d0e2f1bbbcc6daf6cb5a42cee9bc (diff)
downloadCMake-1c81cd9e0b663ab9243c962ebdeb3b4305e96ed3.zip
CMake-1c81cd9e0b663ab9243c962ebdeb3b4305e96ed3.tar.gz
CMake-1c81cd9e0b663ab9243c962ebdeb3b4305e96ed3.tar.bz2
Merge topic 'update-zstd'
ddced0c6b6 zstd: Fix trace compilation on AIX ee98d9378f zstd: Fix ZSTD_VecMask_next compilation of software ctz implementation eb8db99596 Merge branch 'upstream-zstd' into update-zstd da1e841ccf zstd 2021-05-14 (a488ba11) 8c65ea4744 zstd: Update script to get zstd 1.5.0 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6622
Diffstat (limited to 'Utilities/cmzstd/lib/dictBuilder/cover.h')
-rw-r--r--Utilities/cmzstd/lib/dictBuilder/cover.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Utilities/cmzstd/lib/dictBuilder/cover.h b/Utilities/cmzstd/lib/dictBuilder/cover.h
index f2aa0e3..1aacddd 100644
--- a/Utilities/cmzstd/lib/dictBuilder/cover.h
+++ b/Utilities/cmzstd/lib/dictBuilder/cover.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2020, Facebook, Inc.
+ * Copyright (c) Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
@@ -8,6 +8,10 @@
* You may select, at your option, one of the above-listed licenses.
*/
+#ifndef ZDICT_STATIC_LINKING_ONLY
+# define ZDICT_STATIC_LINKING_ONLY
+#endif
+
#include <stdio.h> /* fprintf */
#include <stdlib.h> /* malloc, free, qsort */
#include <string.h> /* memset */
@@ -16,10 +20,7 @@
#include "../common/pool.h"
#include "../common/threading.h"
#include "../common/zstd_internal.h" /* includes zstd.h */
-#ifndef ZDICT_STATIC_LINKING_ONLY
-#define ZDICT_STATIC_LINKING_ONLY
-#endif
-#include "zdict.h"
+#include "../zdict.h"
/**
* COVER_best_t is used for two purposes:
@@ -152,6 +153,6 @@ void COVER_dictSelectionFree(COVER_dictSelection_t selection);
* smallest dictionary within a specified regression of the compressed size
* from the largest dictionary.
*/
- COVER_dictSelection_t COVER_selectDict(BYTE* customDictContent,
+ COVER_dictSelection_t COVER_selectDict(BYTE* customDictContent, size_t dictBufferCapacity,
size_t dictContentSize, const BYTE* samplesBuffer, const size_t* samplesSizes, unsigned nbFinalizeSamples,
size_t nbCheckSamples, size_t nbSamples, ZDICT_cover_params_t params, size_t* offsets, size_t totalCompressedSize);