MCPcopy Create free account
hub / github.com/blend2d/blend2d / heap_sort

Function heap_sort

blend2d/compression/deflateencoder.cpp:461–473  ·  view source on GitHub ↗

Sort the array 'A', which contains 'length' uint32_t 32-bit integers. Note: name this function heap_sort() instead of heapsort() to avoid colliding with heapsort() from stdlib.h on BSD-derived systems --- though this isn't necessary when compiling with -D_ANSI_SOURCE, which is the better solution.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

sort_symbolsFunction · 0.85

Calls 2

heapify_arrayFunction · 0.85
heapify_subtreeFunction · 0.85

Tested by

no test coverage detected