Skip to content

Commit b71c6bb

Browse files
committed
Push release to 1.1
1 parent 750f9ea commit b71c6bb

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

cpp/src/app/BlockCompressor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ int BlockCompressor::call()
145145
{
146146
bool printFlag = _verbosity > 1;
147147
stringstream ss;
148-
ss << "Kanzi 1.0 (C) 2017, Frederic Langlet";
148+
ss << "Kanzi 1.1 (C) 2017, Frederic Langlet";
149149
printOut(ss.str().c_str(), _verbosity >= 1);
150150
ss.str(string());
151151
ss << "Input file name set to '" << _inputName << "'";

cpp/src/app/BlockDecompressor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int BlockDecompressor::call()
138138
{
139139
bool printFlag = _verbosity > 1;
140140
stringstream ss;
141-
ss << "Kanzi 1.0 (C) 2017, Frederic Langlet";
141+
ss << "Kanzi 1.1 (C) 2017, Frederic Langlet";
142142
printOut(ss.str().c_str(), _verbosity >= 1);
143143
ss.str(string());
144144
ss << "Input file name set to '" << _inputName << "'";

cpp/src/entropy/TPAQPredictor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ inline void TPAQPredictor::addMatchContext()
431431
{
432432
if (_c0 == ((_buffer[_matchPos & MASK2] & 0xFF) | 256) >> (8 - _bpos)) {
433433
// Add match length to NN inputs. Compute input based on run length
434-
int p = (_matchLen < 32) ? _matchLen : 32 + ((_matchLen - 32) >> 2);
434+
int p = (_matchLen <= 32) ? _matchLen : 32 + ((_matchLen - 32) >> 2);
435435

436436
if (((_buffer[_matchPos & MASK2] >> (7 - _bpos)) & 1) == 0)
437437
p = -p;

go/src/kanzi/app/BlockCompressorTask.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func BlockCompressor_main() {
219219
func (this *BlockCompressor) call() (int, uint64) {
220220
var msg string
221221
printFlag := this.verbosity > 1
222-
bc_printOut("Kanzi 1.0 (C) 2017, Frederic Langlet", this.verbosity >= 1)
222+
bc_printOut("Kanzi 1.1 (C) 2017, Frederic Langlet", this.verbosity >= 1)
223223
bc_printOut("Input file name set to '"+this.inputName+"'", printFlag)
224224
bc_printOut("Output file name set to '"+this.outputName+"'", printFlag)
225225
msg = fmt.Sprintf("Block size set to %d bytes", this.blockSize)
@@ -231,7 +231,7 @@ func (this *BlockCompressor) call() (int, uint64) {
231231
msg = fmt.Sprintf("Checksum set to %t", this.checksum)
232232
bc_printOut(msg, printFlag)
233233
w1 := "no"
234-
234+
235235
if this.transform != "NONE" {
236236
w1 = this.transform
237237
}

go/src/kanzi/app/BlockDecompressorTask.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func BlockDecompressor_main() {
183183
func (this *BlockDecompressor) call() (int, uint64) {
184184
var msg string
185185
printFlag := this.verbosity > 1
186-
bd_printOut("Kanzi 1.0 (C) 2017, Frederic Langlet", this.verbosity >= 1)
186+
bd_printOut("Kanzi 1.1 (C) 2017, Frederic Langlet", this.verbosity >= 1)
187187
bd_printOut("Input file name set to '"+this.inputName+"'", printFlag)
188188
bd_printOut("Output file name set to '"+this.outputName+"'", printFlag)
189189
msg = fmt.Sprintf("Verbosity set to %v", this.verbosity)

go/src/kanzi/entropy/TPAQPredictor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ func (this *TPAQPredictor) addMatchContext() {
473473
// Add match length to NN inputs. Compute input based on run length
474474
var p int
475475

476-
if this.matchLen < 32 {
476+
if this.matchLen <= 32 {
477477
p = this.matchLen
478478
} else {
479479
p = (32 + ((this.matchLen - 32) >> 2))

java/src/kanzi/app/BlockCompressor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public void run()
173173
public Integer call()
174174
{
175175
boolean printFlag = this.verbosity > 1;
176-
printOut("Kanzi 1.0 (C) 2017, Frederic Langlet", this.verbosity >= 1);
176+
printOut("Kanzi 1.1 (C) 2017, Frederic Langlet", this.verbosity >= 1);
177177
printOut("Input file name set to '" + this.inputName + "'", printFlag);
178178
printOut("Output file name set to '" + this.outputName + "'", printFlag);
179179
printOut("Block size set to " + this.blockSize + " bytes", printFlag);

java/src/kanzi/app/BlockDecompressor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void run()
156156
public Integer call()
157157
{
158158
boolean printFlag = this.verbosity > 1;
159-
printOut("Kanzi 1.0 (C) 2017, Frederic Langlet", this.verbosity >= 1);
159+
printOut("Kanzi 1.1 (C) 2017, Frederic Langlet", this.verbosity >= 1);
160160
printOut("Input file name set to '" + this.inputName + "'", printFlag);
161161
printOut("Output file name set to '" + this.outputName + "'", printFlag);
162162
printOut("Verbosity set to "+this.verbosity, printFlag);

java/src/kanzi/entropy/TPAQPredictor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ private void addMatchContext()
467467
if (this.c0 == ((this.buffer[this.matchPos&MASK2] & 0xFF) | 256) >> (8-this.bpos))
468468
{
469469
// Add match length to NN inputs. Compute input based on run length
470-
int p = (this.matchLen<32) ? this.matchLen : 32+((this.matchLen-32)>>2);
470+
int p = (this.matchLen<=32) ? this.matchLen : 32+((this.matchLen-32)>>2);
471471

472472
if (((this.buffer[this.matchPos&MASK2] >> (7-this.bpos)) & 1) == 0)
473473
p = -p;

0 commit comments

Comments
 (0)