Код: Выделить всё
typedef float float4 __attribute__((vector_size(16)));
float4 test1(float4 v)
{
return 1.0f / v;
}
Подробнее здесь: https://stackoverflow.com/questions/320 ... ing-fast-m
Код: Выделить всё
typedef float float4 __attribute__((vector_size(16)));
float4 test1(float4 v)
{
return 1.0f / v;
}