mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Rename test/c/mimiclib/flate.c
This commit is contained in:
1 parent
530605a16b
commit
d168e6977b
3 files changed
+5
-7
No files matched your search
@@ -14,9 +14,7 @@
|
||||
|
||||
#include "zlib.h"
|
||||
|
||||
// TODO: rename this file to "deflate-gzip-zlib.c".
|
||||
|
||||
uint32_t global_mimiclib_flate_unused_u32;
|
||||
uint32_t global_mimiclib_deflate_unused_u32;
|
||||
|
||||
const char* mimic_bench_adler32(wuffs_base__buf1* dst,
|
||||
wuffs_base__buf1* src,
|
||||
@@ -28,7 +26,7 @@ const char* mimic_bench_adler32(wuffs_base__buf1* dst,
|
||||
if (len > 0x7FFFFFFF) {
|
||||
return "src length is too large";
|
||||
}
|
||||
global_mimiclib_flate_unused_u32 = adler32(0L, ptr, len);
|
||||
global_mimiclib_deflate_unused_u32 = adler32(0L, ptr, len);
|
||||
src->ri = src->wi;
|
||||
return NULL;
|
||||
}
|
||||
@@ -43,7 +41,7 @@ const char* mimic_bench_crc32(wuffs_base__buf1* dst,
|
||||
if (len > 0x7FFFFFFF) {
|
||||
return "src length is too large";
|
||||
}
|
||||
global_mimiclib_flate_unused_u32 = crc32(0L, ptr, len);
|
||||
global_mimiclib_deflate_unused_u32 = crc32(0L, ptr, len);
|
||||
src->ri = src->wi;
|
||||
return NULL;
|
||||
}
|
||||
+1
-1
@@ -43,7 +43,7 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
|
||||
#include "../../../gen/c/std/flate.c"
|
||||
#include "../testlib/testlib.c"
|
||||
#ifdef WUFFS_MIMIC
|
||||
#include "../mimiclib/flate.c"
|
||||
#include "../mimiclib/deflate-gzip-zlib.c"
|
||||
#endif
|
||||
|
||||
// ---------------- Golden Tests
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
|
||||
#include "../../../gen/c/std/zlib.c"
|
||||
#include "../testlib/testlib.c"
|
||||
#ifdef WUFFS_MIMIC
|
||||
#include "../mimiclib/flate.c"
|
||||
#include "../mimiclib/deflate-gzip-zlib.c"
|
||||
#endif
|
||||
|
||||
// ---------------- Golden Tests
|
||||
|
||||
Reference in new issue
Block a user