kernel/src/runtime/MinHeap.h
/**
         * Performs the heapify up operation, starting at the given index.
         */
Performs the heapify up operation, starting at the given index.
Performs the heapify up operation starting at the given index .
void heapifyUp(const size_t i) {
            if(i && this->storage[Parent(i)] > this->storage[i]) {
                swap(this->storage[i], this->storage[Parent(i)]);
                this->heapifyUp(Parent(i));
            }
        }
void heapifyUp ( const size_t i ) { if ( i && this -> storage [ Parent ( i ) ] > this -> storage [ i ] ) { swap ( this -> storage [ i ] , this -> storage [ Parent ( i ) ] ) ; this -> heapifyUp ( Parent ( i ) ) ; } }
Performs the heapify up operation, starting at the given index.
Performs the heapify up operation starting at the given index .
// fix up the parent next