overlap
static bool overlap(resource_size_t base1, resource_size_t end1,
static inline int overlap(int min1, int max1, int min2, int max2)