Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Buehlmann
GenericIO
Commits
1f799c26
Commit
1f799c26
authored
Sep 28, 2018
by
Hal Finkel
Browse files
make new version of SZ compile with older zstd
parent
03ba2823
Changes
1
Hide whitespace changes
Inline
Side-by-side
thirdparty/SZ/sz/src/utility.c
View file @
1f799c26
...
...
@@ -155,9 +155,15 @@ float calculate_delta_t(size_t size){
int
is_lossless_compressed_data
(
unsigned
char
*
compressedBytes
,
size_t
cmpSize
)
{
#if ZSTD_VERSION_NUMBER >= 10300
int
frameContentSize
=
ZSTD_getFrameContentSize
(
compressedBytes
,
cmpSize
);
if
(
frameContentSize
!=
ZSTD_CONTENTSIZE_ERROR
)
return
ZSTD_COMPRESSOR
;
#else
int
frameContentSize
=
ZSTD_getDecompressedSize
(
compressedBytes
,
cmpSize
);
if
(
frameContentSize
==
0
)
return
ZSTD_COMPRESSOR
;
#endif
int
flag
=
isZlibFormat
(
compressedBytes
[
0
],
compressedBytes
[
1
]);
if
(
flag
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment