Skip to content

Commit 50f5e5e

Browse files
author
Overmind
committed
cm: drop s1*s6 cross term (redundant post-mx4) — -1 byte Canterbury tier-2
1 parent 84672b8 commit 50f5e5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cm/cm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ static uint16_t cm_predict(cm_t *cm, uint32_t pos, int bp, float *str, uint16_t
882882
int mx8_ctx = (cm->match.active?1:0)*256 + wl8_b*32 + bp*4 + cc8;
883883
float m8 = mixer_mix(&cm->mx8[mx8_ctx], str);
884884
float s4 = stretch(m4); float s1 = stretch(m1), s8 = stretch(m8); float s6 = stretch(m6); float s3 = stretch(m3); float s7 = stretch(m7);
885-
float cross = s1 * s8 * 0.006f + s1 * s6 * 0.004f + s3 * s8 * 0.004f;
885+
float cross = s1 * s8 * 0.006f + s3 * s8 * 0.004f;
886886
float mixed = squash((s1*8 + stretch(m2) + s4*3 + stretch(m5)*2 + stretch(m6)*5 + stretch(m7)*3 + s8*8 + cross) / 30.0f);
887887

888888
uint16_t mp = (uint16_t)(mixed * PROB_MAX);

0 commit comments

Comments
 (0)