int test_blockseq_comparison(ulv *bufa, ulv *bufb, size_t count) { ulv *p1 = bufa; ulv *p2 = bufb; unsigned int j; size_t i; ul value; print(" "); for (j = 0; j < 256; j++) { print("\b\b\b\b\b\b\b\b\b\b\b"); p1 = (ulv *) bufa; p2 = (ulv *) bufb; print("setting "); print_Dec_3(j); for (i = 0; i < count; i++) { value = (ul) UL_BYTE(j); *p1++ = value; *p2++ = ~value; //*p1++ = *p2++ = (ul) UL_BYTE(j); } print("\b\b\b\b\b\b\b\b\b\b\b"); print("testing "); print_Dec_3(j); if (compare_regions_reverse(bufa, bufb, count)) { return -1; } } print("\b\b\b\b\b\b\b\b\b\b\b \b\b\b\b\b\b\b\b\b\b\b"); return 0; }
static int test_blockseq_comparison(ulv *bufa, ulv *bufb, size_t count) { ulv *p1 = bufa; ulv *p2 = bufb; unsigned int j; size_t i; printf(" "); for (j = 0; j < 256; j++) { printf("\b\b\b\b\b\b\b\b\b\b\b"); p1 = (ulv *) bufa; p2 = (ulv *) bufb; printf("setting %3u", j); for (i = 0; i < count; i++) { *p1++ = *p2++ = (ul) UL_BYTE(j); } printf("\b\b\b\b\b\b\b\b\b\b\b"); printf("testing %3u", j); if (compare_regions(bufa, bufb, count)) { return -1; } } printf("\b\b\b\b\b\b\b\b\b\b\b \b\b\b\b\b\b\b\b\b\b\b"); return 0; }
int test_blockseq_comparison(ulv *bufa, ulv *bufb, size_t count) { unsigned int j; size_t i; printf(" "); fflush(stdout); for (j = 0; j < 256; j++) { printf("\b\b\b\b\b\b\b\b\b\b\b"); printf("setting %3u", j); fflush(stdout); for (i = 0; i < count; i++) { bufa[i] = bufb[i] = (ul) UL_BYTE(j); } printf("\b\b\b\b\b\b\b\b\b\b\b"); printf("testing %3u", j); fflush(stdout); if (compare_regions(bufa, bufb, count)) { return -1; } } printf("\b\b\b\b\b\b\b\b\b\b\b \b\b\b\b\b\b\b\b\b\b\b"); fflush(stdout); return 0; }