mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 15:04:56 +00:00
Update submodules
This commit is contained in:
2
hecl/extern/athena
vendored
2
hecl/extern/athena
vendored
Submodule hecl/extern/athena updated: 8fce7ce161...255f2bf745
2
hecl/extern/boo
vendored
2
hecl/extern/boo
vendored
Submodule hecl/extern/boo updated: c057068e64...1177d50eda
@@ -187,7 +187,7 @@ public:
|
||||
|
||||
/// find_first_contiguous - Returns the index of the first contiguous
|
||||
/// set of bits of "Length", -1 if no contiguous bits found.
|
||||
int find_first_contiguous(unsigned Length) const {
|
||||
int find_first_contiguous(unsigned Length, unsigned BucketSz) const {
|
||||
for (int idx = find_first(); idx != -1; idx = find_next(idx)) {
|
||||
if (idx + Length > size())
|
||||
return -1;
|
||||
@@ -201,7 +201,11 @@ public:
|
||||
}
|
||||
}
|
||||
if (good)
|
||||
return idx;
|
||||
{
|
||||
unsigned space = BucketSz - (idx % BucketSz);
|
||||
if (space >= Length)
|
||||
return idx;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user