summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2020-08-24 18:28:47 (GMT)
committerGitHub <noreply@github.com>2020-08-24 18:28:47 (GMT)
commite46fa0ff715227546daa91538d770ec57b8957f3 (patch)
tree18483f2463fe0111a94ee85ecbaf2ebc030d382a
parent34fe7c9d7f4fbeeb42c22f4ad1a01c1771d14268 (diff)
parent0002563be823ed65149ea7aa64654f3ce13c0e5b (diff)
downloadlz4-e46fa0ff715227546daa91538d770ec57b8957f3.zip
lz4-e46fa0ff715227546daa91538d770ec57b8957f3.tar.gz
lz4-e46fa0ff715227546daa91538d770ec57b8957f3.tar.bz2
Merge pull request #903 from lz4/nofastforce
removed LZ4_compress_fast_force()
-rw-r--r--lib/lz4.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 1cd7322..70324e2 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -1288,22 +1288,6 @@ int LZ4_compress_default(const char* src, char* dst, int srcSize, int maxOutputS
}
-/* hidden debug function */
-/* strangely enough, gcc generates faster code when this function is uncommented, even if unused */
-int LZ4_compress_fast_force(const char* src, char* dst, int srcSize, int dstCapacity, int acceleration)
-{
- LZ4_stream_t ctx;
- LZ4_initStream(&ctx, sizeof(ctx));
-
- if (srcSize < LZ4_64Klimit) {
- return LZ4_compress_generic(&ctx.internal_donotuse, src, dst, srcSize, NULL, dstCapacity, limitedOutput, byU16, noDict, noDictIssue, acceleration);
- } else {
- tableType_t const addrMode = (sizeof(void*) > 4) ? byU32 : byPtr;
- return LZ4_compress_generic(&ctx.internal_donotuse, src, dst, srcSize, NULL, dstCapacity, limitedOutput, addrMode, noDict, noDictIssue, acceleration);
- }
-}
-
-
/* Note!: This function leaves the stream in an unclean/broken state!
* It is not safe to subsequently use the same state with a _fastReset() or
* _continue() call without resetting it. */