| 1 |
#include <stddef.h> |
| 2 |
#include <stdint-gcc.h> |
| 3 |
|
| 4 |
void |
| 5 |
foo0 (int8_t *__restrict f, int16_t *__restrict d, int n) |
| 6 |
{ |
| 7 |
for (int i = 0; i < n; ++i) |
| 8 |
{ |
| 9 |
f[i * 2 + 0] = 1; |
| 10 |
f[i * 2 + 1] = 2; |
| 11 |
d[i] = 3; |
| 12 |
} |
| 13 |
} |
| 14 |
|
| 15 |
void |
| 16 |
foo1 (int16_t *__restrict f, int32_t *__restrict d, int n) |
| 17 |
{ |
| 18 |
for (int i = 0; i < n; ++i) |
| 19 |
{ |
| 20 |
f[i * 2 + 0] = 1; |
| 21 |
f[i * 2 + 1] = 2; |
| 22 |
d[i] = 3; |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
void |
| 27 |
foo2 (int32_t *__restrict f, int64_t *__restrict d, int n) |
| 28 |
{ |
| 29 |
for (int i = 0; i < n; ++i) |
| 30 |
{ |
| 31 |
f[i * 2 + 0] = 1; |
| 32 |
f[i * 2 + 1] = 2; |
| 33 |
d[i] = 3; |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
void |
| 38 |
foo3 (int16_t *__restrict f, float *__restrict d, int n) |
| 39 |
{ |
| 40 |
for (int i = 0; i < n; ++i) |
| 41 |
{ |
| 42 |
f[i * 2 + 0] = 1; |
| 43 |
f[i * 2 + 1] = 2; |
| 44 |
d[i] = 3; |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
void |
| 49 |
foo4 (int32_t *__restrict f, float *__restrict d, int n) |
| 50 |
{ |
| 51 |
for (int i = 0; i < n; ++i) |
| 52 |
{ |
| 53 |
f[i * 2 + 0] = 1; |
| 54 |
f[i * 2 + 1] = 2; |
| 55 |
d[i] = 3; |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
void |
| 60 |
foo5 (float *__restrict f, double *__restrict d, int n) |
| 61 |
{ |
| 62 |
for (int i = 0; i < n; ++i) |
| 63 |
{ |
| 64 |
f[i * 2 + 0] = 1; |
| 65 |
f[i * 2 + 1] = 2; |
| 66 |
d[i] = 3; |
| 67 |
} |
| 68 |
} |