ONE - On-device Neural Engine
|
#include <IntervalSet.h>
Public Member Functions | |
IntervalSet (uint32_t len=0xffffffff) | |
void | insert (const IntervalMask &) |
uint32_t | firstfit (uint32_t len) const |
Definition at line 44 of file IntervalSet.h.
kuma::details::IntervalSet::IntervalSet | ( | uint32_t | len = 0xffffffff | ) |
Definition at line 27 of file IntervalSet.cpp.
uint32_t kuma::details::IntervalSet::firstfit | ( | uint32_t | len | ) | const |
"firstfit(l)" returns the offset of an interval whose length is larger than "l".
When multiple intervals meet this condition, "firstfit(l)" chooses the interval with the smallest offset as its name suggests.
NOTE This method throws std::runtime_error if fails to find a proper region
Definition at line 77 of file IntervalSet.cpp.
Referenced by kuma::solve().
void kuma::details::IntervalSet::insert | ( | const IntervalMask & | m | ) |
Definition at line 33 of file IntervalSet.cpp.
References insert(), m, and kuma::details::mask().
Referenced by insert(), and kuma::solve().