/* Peform a rotate operation on test_ba. */ static void testutil_rotate(size_t bit_off, size_t bit_len, ssize_t bit_right_amount) { assert(test_ba != NULL); bitarray_rotate(test_ba, bit_off, bit_len, bit_right_amount); if (test_verbose) { bitarray_fprint(stdout, test_ba); fprintf(stdout, " rotate off=%llu, len=%llu, amnt=%lld\n", (unsigned long long) bit_off, (unsigned long long) bit_len, (long long) bit_right_amount); } }
void testutil_rotate(const size_t bit_offset, const size_t bit_length, const ssize_t bit_right_shift_amount) { assert(test_bitarray != NULL); bitarray_rotate(test_bitarray, bit_offset, bit_length, bit_right_shift_amount); if (test_verbose) { bitarray_fprint(stdout, test_bitarray); fprintf(stdout, " rotate off=%zu, len=%zu, amnt=%zd\n", bit_offset, bit_length, bit_right_shift_amount); } }