commit
d1661056e4
2
Makefile
2
Makefile
@ -32,7 +32,7 @@
|
|||||||
# ################################################################
|
# ################################################################
|
||||||
|
|
||||||
# Version number
|
# Version number
|
||||||
export VERSION := 0.2.0
|
export VERSION := 0.2.2
|
||||||
|
|
||||||
PRGDIR = programs
|
PRGDIR = programs
|
||||||
ZSTDDIR = lib
|
ZSTDDIR = lib
|
||||||
|
6
NEWS
6
NEWS
@ -1,3 +1,9 @@
|
|||||||
|
v0.2.2
|
||||||
|
Fix : Visual Studio 2013 & 2015 release compilation, by Christophe Chevalier
|
||||||
|
|
||||||
|
v0.2.2
|
||||||
|
Fix : Read errors, advanced fuzzer tests, by Hanno Böck
|
||||||
|
|
||||||
v0.2.0
|
v0.2.0
|
||||||
**Breaking format change**
|
**Breaking format change**
|
||||||
Faster decompression speed
|
Faster decompression speed
|
||||||
|
@ -32,11 +32,11 @@
|
|||||||
# ################################################################
|
# ################################################################
|
||||||
|
|
||||||
# Version numbers
|
# Version numbers
|
||||||
VERSION?= 0.1.2
|
|
||||||
LIBVER_MAJOR=`sed -n '/define ZSTD_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
LIBVER_MAJOR=`sed -n '/define ZSTD_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
||||||
LIBVER_MINOR=`sed -n '/define ZSTD_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
LIBVER_MINOR=`sed -n '/define ZSTD_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
||||||
LIBVER_PATCH=`sed -n '/define ZSTD_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
LIBVER_PATCH=`sed -n '/define ZSTD_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
||||||
LIBVER = $(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH)
|
LIBVER = $(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH)
|
||||||
|
VERSION?= $(LIBVER)
|
||||||
|
|
||||||
DESTDIR?=
|
DESTDIR?=
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
|
21
lib/huff0.c
21
lib/huff0.c
@ -1023,17 +1023,22 @@ size_t HUF_readDTableX4 (U32* DTable, const void* src, size_t srcSize)
|
|||||||
U32 nextRankVal = 0;
|
U32 nextRankVal = 0;
|
||||||
U32 w, consumed;
|
U32 w, consumed;
|
||||||
const int rescale = (memLog-tableLog) - 1; /* tableLog <= memLog */
|
const int rescale = (memLog-tableLog) - 1; /* tableLog <= memLog */
|
||||||
|
U32* rankVal0 = rankVal[0];
|
||||||
for (w=1; w<=maxW; w++)
|
for (w=1; w<=maxW; w++)
|
||||||
{
|
{
|
||||||
U32 current = nextRankVal;
|
U32 current = nextRankVal;
|
||||||
nextRankVal += rankStats[w] << (w+rescale);
|
nextRankVal += rankStats[w] << (w+rescale);
|
||||||
rankVal[0][w] = current;
|
rankVal0[w] = current;
|
||||||
}
|
}
|
||||||
for (consumed = minBits; consumed <= memLog - minBits; consumed++)
|
for (consumed = minBits; consumed <= memLog - minBits; consumed++)
|
||||||
|
{
|
||||||
|
U32* rankValPtr = rankVal[consumed];
|
||||||
for (w = 1; w <= maxW; w++)
|
for (w = 1; w <= maxW; w++)
|
||||||
rankVal[consumed][w] = rankVal[0][w] >> consumed;
|
{
|
||||||
|
rankValPtr[w] = rankVal0[w] >> consumed;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HUF_fillDTableX4(dt, memLog,
|
HUF_fillDTableX4(dt, memLog,
|
||||||
sortedSymbol, sizeOfSort,
|
sortedSymbol, sizeOfSort,
|
||||||
@ -1390,15 +1395,21 @@ size_t HUF_readDTableX6 (U32* DTable, const void* src, size_t srcSize)
|
|||||||
U32 nextRankVal = 0;
|
U32 nextRankVal = 0;
|
||||||
U32 w, consumed;
|
U32 w, consumed;
|
||||||
const int rescale = (memLog-tableLog) - 1; /* tableLog <= memLog */
|
const int rescale = (memLog-tableLog) - 1; /* tableLog <= memLog */
|
||||||
|
U32* rankVal0 = rankVal[0];
|
||||||
for (w=1; w<=maxW; w++)
|
for (w=1; w<=maxW; w++)
|
||||||
{
|
{
|
||||||
U32 current = nextRankVal;
|
U32 current = nextRankVal;
|
||||||
nextRankVal += rankStats[w] << (w+rescale);
|
nextRankVal += rankStats[w] << (w+rescale);
|
||||||
rankVal[0][w] = current;
|
rankVal0[w] = current;
|
||||||
}
|
}
|
||||||
for (consumed = minBits; consumed <= memLog - minBits; consumed++)
|
for (consumed = minBits; consumed <= memLog - minBits; consumed++)
|
||||||
|
{
|
||||||
|
U32* rankValPtr = rankVal[consumed];
|
||||||
for (w = 1; w <= maxW; w++)
|
for (w = 1; w <= maxW; w++)
|
||||||
rankVal[consumed][w] = rankVal[0][w] >> consumed;
|
{
|
||||||
|
rankValPtr[w] = rankVal0[w] >> consumed;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ extern "C" {
|
|||||||
***************************************/
|
***************************************/
|
||||||
#define ZSTD_VERSION_MAJOR 0 /* for breaking interface changes */
|
#define ZSTD_VERSION_MAJOR 0 /* for breaking interface changes */
|
||||||
#define ZSTD_VERSION_MINOR 2 /* for new (non-breaking) interface capabilities */
|
#define ZSTD_VERSION_MINOR 2 /* for new (non-breaking) interface capabilities */
|
||||||
#define ZSTD_VERSION_RELEASE 0 /* for tweaks, bug-fixes, or development */
|
#define ZSTD_VERSION_RELEASE 2 /* for tweaks, bug-fixes, or development */
|
||||||
#define ZSTD_VERSION_NUMBER (ZSTD_VERSION_MAJOR *100*100 + ZSTD_VERSION_MINOR *100 + ZSTD_VERSION_RELEASE)
|
#define ZSTD_VERSION_NUMBER (ZSTD_VERSION_MAJOR *100*100 + ZSTD_VERSION_MINOR *100 + ZSTD_VERSION_RELEASE)
|
||||||
unsigned ZSTD_versionNumber (void);
|
unsigned ZSTD_versionNumber (void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user