Lines Matching refs:n_rem
772 int n_shift, n_rem, r_zeroes_number, version; in balance_leaf_paste_right_shift() local
804 n_rem = tb->insert_size[0] - tb->rbytes; in balance_leaf_paste_right_shift()
805 if (n_rem < 0) in balance_leaf_paste_right_shift()
806 n_rem = 0; in balance_leaf_paste_right_shift()
808 temp_rem = n_rem; in balance_leaf_paste_right_shift()
814 temp_rem = n_rem << shift; in balance_leaf_paste_right_shift()
825 if (n_rem > tb->zeroes_num) { in balance_leaf_paste_right_shift()
827 r_body = body + n_rem - tb->zeroes_num; in balance_leaf_paste_right_shift()
830 r_zeroes_number = tb->zeroes_num - n_rem; in balance_leaf_paste_right_shift()
834 leaf_paste_in_buffer(&bi, 0, n_shift, tb->insert_size[0] - n_rem, in balance_leaf_paste_right_shift()
840 tb->insert_size[0] = n_rem; in balance_leaf_paste_right_shift()
841 if (!n_rem) in balance_leaf_paste_right_shift()
1084 int n_shift, n_rem, r_zeroes_number, shift; in balance_leaf_new_nodes_paste_shift() local
1117 n_rem = tb->insert_size[0] - tb->sbytes[i]; in balance_leaf_new_nodes_paste_shift()
1118 if (n_rem < 0) in balance_leaf_new_nodes_paste_shift()
1119 n_rem = 0; in balance_leaf_new_nodes_paste_shift()
1123 if (n_rem > tb->zeroes_num) { in balance_leaf_new_nodes_paste_shift()
1125 r_body = body + n_rem - tb->zeroes_num; in balance_leaf_new_nodes_paste_shift()
1128 r_zeroes_number = tb->zeroes_num - n_rem; in balance_leaf_new_nodes_paste_shift()
1132 leaf_paste_in_buffer(&bi, 0, n_shift, tb->insert_size[0] - n_rem, in balance_leaf_new_nodes_paste_shift()
1141 add_le_ih_k_offset(tmp, n_rem << shift); in balance_leaf_new_nodes_paste_shift()
1143 tb->insert_size[0] = n_rem; in balance_leaf_new_nodes_paste_shift()
1144 if (!n_rem) in balance_leaf_new_nodes_paste_shift()