better this way with assert
This commit is contained in:
parent
544c920304
commit
219405069c
3
vmap.h
3
vmap.h
@ -100,7 +100,8 @@ static inline vmap_find_res search_all_vmap(vmap *map, uint32_t key, vmap_find_r
|
|||||||
/* Rare edge-case when last lane element was returned and we continue from it */
|
/* Rare edge-case when last lane element was returned and we continue from it */
|
||||||
/* We should not try lane processing, just jump next level - but only if there */
|
/* We should not try lane processing, just jump next level - but only if there */
|
||||||
/* is a next level (so last checked lane was totally filled already to full cap. */
|
/* is a next level (so last checked lane was totally filled already to full cap. */
|
||||||
if((prev.lane_abcd_next > 4) && (prev.last_found_lane_val != 0)) {
|
if(prev.lane_abcd_next > 4) {
|
||||||
|
assert(prev.last_found_lane_val != 0);
|
||||||
prev = vmap_search_all_begin();
|
prev = vmap_search_all_begin();
|
||||||
++level;
|
++level;
|
||||||
/* prev.level = level; // unnecessary, I hand-optimized out */
|
/* prev.level = level; // unnecessary, I hand-optimized out */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user