Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
ae51741d
Commit
ae51741d
authored
Sep 28, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2badfdea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
wcfs/internal/xbtree/blib/rangemap.go.in
wcfs/internal/xbtree/blib/rangemap.go.in
+2
-5
No files found.
wcfs/internal/xbtree/blib/rangemap.go.in
View file @
ae51741d
...
@@ -287,6 +287,7 @@ func (M *RangedMap) HasRange(r KeyRange) (yes bool) {
...
@@ -287,6 +287,7 @@ func (M *RangedMap) HasRange(r KeyRange) (yes bool) {
}
}
//
scan
right
and
verify
that
whole
r
is
covered
lo
:=
r
.
Lo
lo
:=
r
.
Lo
for
{
for
{
e
:=
M
.
entryv
[
ilo
]
e
:=
M
.
entryv
[
ilo
]
...
@@ -296,7 +297,7 @@ func (M *RangedMap) HasRange(r KeyRange) (yes bool) {
...
@@ -296,7 +297,7 @@ func (M *RangedMap) HasRange(r KeyRange) (yes bool) {
return
false
//
hole
in
coverage
return
false
//
hole
in
coverage
}
}
if
r
.
Hi_
<=
e
.
Hi_
{
if
r
.
Hi_
<=
e
.
Hi_
{
return
true
//
full
coverage
return
true
//
reached
full
coverage
}
}
lo
=
e
.
Hi_
lo
=
e
.
Hi_
...
@@ -309,10 +310,6 @@ func (M *RangedMap) HasRange(r KeyRange) (yes bool) {
...
@@ -309,10 +310,6 @@ func (M *RangedMap) HasRange(r KeyRange) (yes bool) {
return
false
//
r
's right not fully covered
return
false
//
r
's right not fully covered
}
}
}
}
// // all keys from r are in M if r ∈ [ilo] XXX not in case of different values
// return (M.entryv[ilo].Lo <= r.Lo && r.Hi_ <= M.entryv[ilo].Hi_)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment