Mercurial > vec
comparison test/test_compare.h @ 10:d1d5d767004c
chore: merge diverging branches
author | Paper <paper@tflc.us> |
---|---|
date | Mon, 18 Nov 2024 15:44:09 -0500 |
parents | 6ff0b7a44bb6 945d410803f8 |
children | 53197dbf4e8e |
comparison
equal
deleted
inserted
replaced
9:6ff0b7a44bb6 | 10:d1d5d767004c |
---|---|
9 v##sign##int##bits##x##size##_store(b, orig_b); \ | 9 v##sign##int##bits##x##size##_store(b, orig_b); \ |
10 v##sign##int##bits##x##size##_store(c, orig_c); \ | 10 v##sign##int##bits##x##size##_store(c, orig_c); \ |
11 \ | 11 \ |
12 for (int i = 0; i < size; i++) { \ | 12 for (int i = 0; i < size; i++) { \ |
13 if ((sign##int##bits##_t)(((equiv) ? UINT##bits##_MAX : 0)) != orig_c[i]) { \ | 13 if ((sign##int##bits##_t)(((equiv) ? UINT##bits##_MAX : 0)) != orig_c[i]) { \ |
14 fprintf(stderr, "v" #sign "int" #bits "x" #size "_" #op " test FAILED at index %d: (" #equiv ") [%" PRI ## psign ## bits "] does not equal result [%" PRI ## psign ## bits "]!\n", i, equiv, orig_c[i]); \ | 14 fprintf(stderr, "v" #sign "int" #bits "x" #size "_" #op " test FAILED at index %d: (" #equiv ") [%d] does not equal result [%" PRI ## psign ## bits "]!\n", i, equiv, orig_c[i]); \ |
15 print_v##sign##int##bits##x##size(stderr,a); \ | 15 print_v##sign##int##bits##x##size(stderr,a); \ |
16 print_v##sign##int##bits##x##size(stderr,b); \ | 16 print_v##sign##int##bits##x##size(stderr,b); \ |
17 print_v##sign##int##bits##x##size(stderr,c); \ | 17 print_v##sign##int##bits##x##size(stderr,c); \ |
18 fprintf(stderr, "\n"); \ | 18 fprintf(stderr, "\n"); \ |
19 return 1; \ | 19 return 1; \ |