return false;
}
-static inline bool _mas_awalk(struct ma_state *mas, unsigned long size)
+static inline bool mas_anode_descend(struct ma_state *mas, unsigned long size)
{
enum maple_type type = mte_node_type(mas->node);
unsigned long pivot, min, gap = 0;
mas->min = min;
mas->max = pivot;
offset = 0;
+ type = mte_node_type(mas->node);
+ count = mt_slots[type];
break;
}
}
* no gap found. (return, slot == MAPLE_NODE_SLOTS)
* found the gap. (return, slot != MAPLE_NODE_SLOTS)
*/
- while (!mas_is_err(mas) && !_mas_awalk(mas, size)) {
+ while (!mas_is_err(mas) && !mas_anode_descend(mas, size)) {
if (last == mas->node)
mas_skip_node(mas);
else