Home | History | Annotate | Download | only in src

Lines Matching defs:cp

129     struct heap_node *cp = ((struct heap_node *) ptr) - 1;      // retrieve the chunk
135 std::cout << "Freeing item at " << offset_from_node ( cp ) << " of size " << cp->len << std::endl;
141 std::cout << " p, cp, after (p), after(cp) "
143 << offset_from_node ( cp ) << ' '
145 << offset_from_node ( after ( cp )) << std::endl;
147 if ( after ( p ) == cp ) {
151 p->len = static_cast<heap_size>(p->len + cp->len); // make the free heap_node larger
154 else if ( after ( cp ) == p ) { // there's a free heap_node right after
158 cp->len = static_cast<heap_size>(cp->len + p->len);
160 freelist = cp;
161 cp->next_node = p->next_node;
164 prev->next_node = offset_from_node(cp);
170 std::cout << " Making new free list entry " << offset_from_node ( cp ) << std::endl;
172 cp->next_node = offset_from_node ( freelist );
173 freelist = cp;