2 vector
unsigned char u8
;
5 vector
unsigned short u16
;
6 vector
signed short s16
;
8 vector
unsigned int u32
;
14 void f_u8(vector
unsigned char *p
) {
17 void f_s8(vector
signed char *p
) {
20 void f_b8(vector
bool char *p
) {
21 b8
= vec_cmpgt(s8
, s8
);
24 void f_u16(vector
unsigned short *p
) {
25 u16
= vec_add(*p
, *p
);
27 void f_s16(vector
signed short *p
) {
28 s16
= vec_add(*p
, *p
);
30 void f_b16(vector
bool short *p
) {
31 b16
= vec_cmpgt(s16
, s16
);
32 b16
= vec_xor(b16
, *p
);
34 void f_u32(vector
unsigned int *p
) {
35 u32
= vec_add(*p
, *p
);
37 void f_s32(vector
signed int *p
) {
38 s32
= vec_add(*p
, *p
);
40 void f_b32(vector
bool int *p
) {
41 b32
= vec_cmpgt(s32
, s32
);
42 b32
= vec_xor(b32
, *p
);
44 void f_f32(vector
float *p
) {
45 f32
= vec_add(*p
, *p
);
47 void f_p16(vector pixel
*p
) {
52 vector
unsigned char u8
= ((vector
unsigned char){1, 2, 3, 4, 5, 6, 7, 8,
53 9, 10,11,12,13,14,15,16});
54 vector
signed char s8
= ((vector
signed char){1, 2, 3, 4, 5, 6, 7, 8,
55 9, 10,11,12,13,14,15,16});
56 vector
bool char b8
= ((vector
bool char){0, -1, 0, -1, 0, 0, 0, 0,
57 -1, -1, -1, -1, 0, -1, 0, -1});
58 vector
unsigned short u16
= ((vector
unsigned short){1, 2, 3, 4, 5, 6, 7, 8});
59 vector
signed short s16
= ((vector
signed short){1, 2, 3, 4, 5, 6, 7, 8});
60 vector
bool short b16
= ((vector
bool short){-1, 0, -1, 0, -1, -1, 0, 0});
61 vector
unsigned int u32
= ((vector
unsigned int){1, 2, 3, 4});
62 vector
signed int s32
= ((vector
signed int){1, 2, 3, 4});
63 vector
bool int b32
= ((vector
bool int){0, -1, -1, 0});
64 vector
float f32
= ((vector
float){1, 2, 3, 4});
65 vector pixel p16
= ((vector pixel
){1, 2, 3, 4, 5, 6, 7, 8});