Rbyd trees with 4-leaves now working, fixed lfs_rtag_flip bug

- This is when flips starts happening during lfs_rbyd_append
- lfs_rtag_flip had an off-by-one math mistake
This commit is contained in:
Christopher Haster
2022-12-23 12:28:13 -06:00
parent c5fec90465
commit fe28837861
3 changed files with 165 additions and 31 deletions

View File

@@ -74,7 +74,7 @@ def tagrepr(tag, size, off=None):
return 'alt%s%s x%x %s' % (
'r' if type1 & 1 else 'b',
'gt' if type1 & 2 else 'lt',
tag >> 3,
tag & ~0x7,
'x%x' % (0xffffffff & (off-size))
if off is not None
else '-%d' % off)