From c85c092189df44e9a88ad30c1f91cfc7fbeb4ccb Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 5 May 2024 22:05:08 +0200 Subject: inomap: incorporate spillBit into the spillNext start value This avoids the manual "| spillBit" logic. --- internal/inomap/inomap_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/inomap/inomap_test.go') diff --git a/internal/inomap/inomap_test.go b/internal/inomap/inomap_test.go index 9ec2932..430ec94 100644 --- a/internal/inomap/inomap_test.go +++ b/internal/inomap/inomap_test.go @@ -5,6 +5,11 @@ import ( "testing" ) +const ( + // bit 63 is used as the spill bit + spillBit = 1 << 63 +) + func TestTranslate(t *testing.T) { m := New(0) q := QIno{Ino: 1} -- cgit v1.2.3