Skip to content

Commit 49e3ff0

Browse files
committed
Micro optimization
1 parent 2795725 commit 49e3ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entropy/TPAQPredictor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ namespace kanzi
424424
_binCount += ((_c4 >> 7) & 1);
425425

426426
// Select Neural Net
427-
_mixer = &_mixers[(_matchLen != 0) ? (_c4 & _mixersMask) + 1 : _c4 & _mixersMask];
427+
_mixer = &_mixers[(_c4 & _mixersMask) + (_matchLen != 0 ? 1 : 0)];
428428

429429
// Add contexts to NN
430430
_ctx0 = (_c4 & 0xFF) << 8;

0 commit comments

Comments
 (0)