Dropped the q-bit (previous-perturb) from cksum tags
Now that we perturb commit cksums with the odd-parity zero, the q-bit no
longer serves a purpose other than extra debug info. But this is a
double-edged sword, because redundant info just means another thing that
can go wrong.
For example, should we assert? If the q-bit doesn't reflect the
previous-perturb state it's a bug, but the only thing that would break
would be the q-bit itself. And if we don't assert what's the point of
keeping the q-bit around?
Dropping the q-bit avoids answering this question and saves a bit of
code:
code stack ctx
before: 37772 2608 620
after: 37768 (-0.0%) 2608 (+0.0%) 620 (+0.0%)
This commit is contained in:
+1
-2
@@ -50,9 +50,8 @@ TAG_B = 0x0000
|
||||
TAG_R = 0x2000
|
||||
TAG_LE = 0x0000
|
||||
TAG_GT = 0x1000
|
||||
TAG_CKSUM = 0x3000 ## 0x3c0p v-11 cccc ---- --qp
|
||||
TAG_CKSUM = 0x3000 ## 0x3c0p v-11 cccc ---- ---p
|
||||
TAG_P = 0x0001
|
||||
TAG_Q = 0x0002
|
||||
TAG_NOTE = 0x3100 # 0x3100 v-11 ---1 ---- ----
|
||||
TAG_ECKSUM = 0x3200 # 0x3200 v-11 --1- ---- ----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user