Lines Matching defs:cpy_num

291  * copy cpy_num node pointers and cpy_num - 1 items from buffer src to buffer
300 int last_first, int cpy_num)
320 RFALSE(nr_src < cpy_num - 1,
321 "no so many items (%d) in src (%d)", cpy_num, nr_src);
322 RFALSE(cpy_num < 0, "cpy_num less than 0 (%d)", cpy_num);
323 RFALSE(cpy_num - 1 + B_NR_ITEMS(dest) > (int)MAX_NR_KEY(dest),
324 "cpy_num (%d) + item number in dest (%d) can not be > MAX_NR_KEY(%d)",
325 cpy_num, B_NR_ITEMS(dest), MAX_NR_KEY(dest));
327 if (cpy_num == 0)
335 /*src_order = (last_first == LAST_TO_FIRST) ? (nr_src - cpy_num + 1) : 0; */
337 nr_src - cpy_num + 1) : (dest_order =
342 /* prepare space for cpy_num pointers */
345 memmove(dc + cpy_num, dc, (nr_dest - dest_order) * DC_SIZE);
348 memcpy(dc, B_N_CHILD(src, src_order), DC_SIZE * cpy_num);
350 /* prepare space for cpy_num - 1 item headers */
352 memmove(key + cpy_num - 1, key,
354 cpy_num));
357 memcpy(key, internal_key(src, src_order), KEY_SIZE * (cpy_num - 1));
360 set_blkh_nr_item(blkh, blkh_nr_item(blkh) + (cpy_num - 1));
362 blkh_free_space(blkh) - (KEY_SIZE * (cpy_num - 1) +
363 DC_SIZE * cpy_num));
375 dc_size(t_dc) + (KEY_SIZE * (cpy_num - 1) +
376 DC_SIZE * cpy_num));
388 * Copy cpy_num node pointers and cpy_num - 1 items from buffer src to
390 * Delete cpy_num - del_par items and node pointers from buffer src.
396 int last_first, int cpy_num,
403 cpy_num);
409 * delete cpy_num - del_par pointers and keys starting for
413 first_item, cpy_num - del_par);
417 i = (cpy_num - del_par ==
419 B_NR_ITEMS(src_bi->bi_bh)) + 1) ? 0 : j - cpy_num +
423 j + 1 - cpy_num + del_par, i,
424 cpy_num - del_par);