Mercurial > vec
comparison test/test.c @ 41:c6e0df09b86f
*: performance improvements with old GCC, reimplement altivec
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 28 Apr 2025 16:31:59 -0400 |
| parents | f9ca85d2f14c |
| children | 7955bed1d169 |
comparison
equal
deleted
inserted
replaced
| 40:55cadb1fac4b | 41:c6e0df09b86f |
|---|---|
| 109 #undef VPRINT | 109 #undef VPRINT |
| 110 #undef VTEST | 110 #undef VTEST |
| 111 | 111 |
| 112 // ------------------------------------------------------------ | 112 // ------------------------------------------------------------ |
| 113 | 113 |
| 114 #if 0 | |
| 114 #include "test_align.h" | 115 #include "test_align.h" |
| 115 #include "test_arith.h" | 116 #include "test_arith.h" |
| 116 #include "test_compare.h" | 117 #include "test_compare.h" |
| 117 #include "test_shift.h" | 118 #include "test_shift.h" |
| 119 #endif | |
| 118 #include "test_benchmark.h" | 120 #include "test_benchmark.h" |
| 119 | 121 |
| 120 // ------------------------------------------------------------ | 122 // ------------------------------------------------------------ |
| 121 | 123 |
| 122 int main(void) | 124 int main(void) |
| 123 { | 125 { |
| 124 int ret = 0; | 126 int ret = 0; |
| 125 | 127 |
| 126 srand(time(NULL)); | 128 srand(time(NULL)); |
| 127 | 129 |
| 130 #if 0 | |
| 128 ret |= test_align(); | 131 ret |= test_align(); |
| 129 ret |= test_arith(); | 132 ret |= test_arith(); |
| 130 ret |= test_compare(); | 133 ret |= test_compare(); |
| 131 ret |= test_shift(); | 134 ret |= test_shift(); |
| 135 #endif | |
| 132 | 136 |
| 133 test_benchmark(); | 137 test_benchmark(); |
| 134 | 138 |
| 135 return ret; | 139 return ret; |
| 136 } | 140 } |
