You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
250 B
14 lines
250 B
1 year ago
|
#ifndef __VSX__
|
||
|
#error "VSX is not supported"
|
||
|
#endif
|
||
|
#include <altivec.h>
|
||
|
|
||
|
typedef __vector unsigned int v_uint32x4;
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
v_uint32x4 z4 = (v_uint32x4){0, 0, 0, 0};
|
||
|
z4 = vec_absd(z4, z4);
|
||
|
return (int)vec_extract(z4, 0);
|
||
|
}
|