Files
erofs-linux/lib
Ian Rogers 6e24628d78 lib: Introduce generic min-heap
Supports push, pop and converting an array into a heap. If the sense of
the compare function is inverted then it can provide a max-heap.

Based-on-work-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ian Rogers <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
2020-03-06 11:56:59 +01:00
..
2019-09-20 09:06:26 -07:00
…
…
…
…
…
2020-02-04 03:05:26 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-03-06 11:56:59 +01:00
2019-12-07 11:00:19 -08:00
…
…
…
…
…
…
…
2020-03-06 11:56:59 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…