1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-07 06:23:00 +03:00

[contrib][linux-kernel] Add zstd_min_clevel() and zstd_max_clevel()

This commit is contained in:
Nick Terrell
2021-03-29 17:52:28 -07:00
committed by Nick Terrell
parent a494308ae9
commit d334ad2ff4
3 changed files with 35 additions and 0 deletions

View File

@@ -17,6 +17,18 @@
#include "common/zstd_deps.h"
#include "common/zstd_internal.h"
int zstd_min_clevel(void)
{
return ZSTD_minCLevel();
}
EXPORT_SYMBOL(zstd_min_clevel);
int zstd_max_clevel(void)
{
return ZSTD_maxCLevel();
}
EXPORT_SYMBOL(zstd_max_clevel);
size_t zstd_compress_bound(size_t src_size)
{
return ZSTD_compressBound(src_size);