int test_seqinc_comparison(ulv *bufa, ulv *bufb, size_t count) { size_t i; ul q = rand_ul(); for (i = 0; i < count; i++) { bufa[i] = bufb[i] = (i + q); } return compare_regions(bufa, bufb, count); }
static int test_seqinc_comparison(ulv *bufa, ulv *bufb, size_t count) { ulv *p1 = bufa; ulv *p2 = bufb; size_t i; ul q = rand_ul(); for (i = 0; i < count; i++) { *p1++ = *p2++ = (i + q); } return compare_regions(bufa, bufb, count); }
int test_and_comparison(ulv *bufa, ulv *bufb, size_t count) { ulv *p1 = bufa; ulv *p2 = bufb; size_t i; ul q = rand_ul(); for (i = 0; i < count; i++) { *p1++ &= q; *p2++ &= q; } return compare_regions(bufa, bufb, count); }
int test_or_comparison(ulv *bufa, ulv *bufb, size_t count) { size_t i; ul q = rand_ul(); for (i = 0; i < count; i++) { bufa[i] |= q; bufb[i] |= q; } return compare_regions(bufa, bufb, count); }
int test_random_value(ulv *bufa, ulv *bufb, size_t count) { ulv *p1 = bufa; ulv *p2 = bufb; size_t i; for (i = 0; i < count; i++) { *p1++ = *p2++ = rand_ul(); if (!(i % PROGRESSOFTEN)) { } } print("\b \b"); return compare_regions(bufa, bufb, count); }
int test_seqinc_comparison(ulv *bufa, ulv *bufb, size_t count) { ulv *p1 = bufa; ulv *p2 = bufb; size_t i; ul q = rand_ul(); ul value; for (i = 0; i < count; i++) { value = (i+q); *p1++ = value; *p2++ = ~value; //*p1++ = *p2++ = (i + q); } return compare_regions_reverse(bufa, bufb, count); }
static int test_div_comparison(ulv *bufa, ulv *bufb, size_t count) { ulv *p1 = bufa; ulv *p2 = bufb; size_t i; ul q = rand_ul(); for (i = 0; i < count; i++) { if (!q) { q++; } *p1++ /= q; *p2++ /= q; } return compare_regions(bufa, bufb, count); }
int test_div_comparison(ulv *bufa, ulv *bufb, size_t count) { size_t i; ul q = rand_ul(); for (i = 0; i < count; i++) { if (!q) { q++; } bufa[i] /= q; bufb[i] /= q; } return compare_regions(bufa, bufb, count); }
static int test_random_value(ulv *bufa, ulv *bufb, size_t count) { ulv *p1 = bufa; ulv *p2 = bufb; ul j = 0; size_t i; putchar(' '); for (i = 0; i < count; i++) { *p1++ = *p2++ = rand_ul(); if (!(i % PROGRESSOFTEN)) { putchar('\b'); putchar(progress[++j % PROGRESSLEN]); } } printf("\b \b"); return compare_regions(bufa, bufb, count); }
int test_random_value(ulv *bufa, ulv *bufb, size_t count) { ul j = 0; size_t i; putchar(' '); fflush(stdout); for (i = 0; i < count; i++) { bufa[i] = bufb[i] = rand_ul(); if (!(i % PROGRESSOFTEN)) { putchar('\b'); putchar(progress[++j % PROGRESSLEN]); fflush(stdout); } } printf("\b \b"); fflush(stdout); return compare_regions(bufa, bufb, count); }