vc/tests/linkTest1.cpp

27 lines
626 B
C++

#include <Vc/Vc>
#include <Vc/IO>
#include <Vc/support.h>
using namespace Vc;
float_v fooLib0A(float_v::AsArg a);
float_v fooLib1A(float_v::AsArg a);
float_v fooLib0B(float_v::AsArg a);
float_v fooLib1B(float_v::AsArg a);
float_v fooLib2(float_v::AsArg a);
float_v fooLib3(float_v::AsArg a);
float_v foo0(float_v::AsArg a);
float_v foo1(float_v::AsArg a)
{
const float_v b = sin(a + float_v::One());
std::cerr << b;
return b;
}
int Vc_CDECL main()
{
float_v x = float_v::Random();
x = fooLib0A(fooLib0B(fooLib1A(fooLib1B(fooLib2(fooLib3(foo0(foo1(x))))))));
return static_cast<int>(x.sum()) >> 8;
}