Mercurial > vec
comparison test/test_align.h @ 4:75ab77f874e2
*: aligned generics, fixed altivec, aligned tests...
author | Paper <paper@tflc.us> |
---|---|
date | Wed, 23 Oct 2024 10:13:25 -0400 |
parents | 3c5545b1568f |
children | 6ff0b7a44bb6 |
comparison
equal
deleted
inserted
replaced
3:3c5545b1568f | 4:75ab77f874e2 |
---|---|
20 /* try storing it */ \ | 20 /* try storing it */ \ |
21 v##sign##int##bits##x##size##_store_aligned(vec, vec_arr_out); \ | 21 v##sign##int##bits##x##size##_store_aligned(vec, vec_arr_out); \ |
22 \ | 22 \ |
23 /* mark success or failure */ \ | 23 /* mark success or failure */ \ |
24 ret |= !!memcmp(vec_arr, vec_arr_out, V##csign##INT##bits##x##size##_ALIGNED_ARRAY_LENGTH(vec_arr)); \ | 24 ret |= !!memcmp(vec_arr, vec_arr_out, V##csign##INT##bits##x##size##_ALIGNED_ARRAY_LENGTH(vec_arr)); \ |
25 \ | |
26 ret |= !V##csign##INT##bits##x##size##_PTR_ALIGNED(vec_arr); \ | |
27 ret |= !V##csign##INT##bits##x##size##_PTR_ALIGNED(vec_arr_out); \ | |
25 } while (0); | 28 } while (0); |
26 | 29 |
27 #define RUN_TESTS(bits, size) \ | 30 #define RUN_TESTS(bits, size) \ |
28 RUN_TEST( , , bits, size) \ | 31 RUN_TEST( , , bits, size) \ |
29 RUN_TEST(u, U, bits, size) | 32 RUN_TEST(u, U, bits, size) |