Lines Matching defs:weight
113 * weight(x) is the size of a block, in bytes; or 0 if and only if x
118 #define weight(x) ((x) == NIL? 0: (x->size))
221 * Search for the first node which has a weight less
226 while (weight(x) >= len) {
316 if (weight(left_branch) >= weight(right_branch)) {
374 wx = weight(x);
376 while (weight(left_branch) > wx || weight(right_branch) > wx) {
380 if (weight(left_branch) >= weight(right_branch)) {
419 * arbitrary free'ing, we need a weight function that considers
428 * If it is empty then weight == 0
429 * If it is aligned then weight == size
431 * if not enough room to align then weight == 0
432 * else weight == aligned size