Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (27 sloc) 629 Bytes
#define CANUSE_SSE
#define CANUSE_SSE2
#define CANUSE_SSE3
//#include <iostream>
#include <lvv/math.h>
using lvv::eq;
#include <lvv/array.h>
using lvv::array;
using lvv::sse;
using lvv::sse2;
using lvv::plain;
using lvv::openmp;
using lvv::select_method;
#include <lvv/lvv.h>
#include <lvv/check.h>
using namespace std;
using namespace lvv;
int
main() {
array<int16_t,10> h10 = {{1,2,3,4,5,6,7,8,9,10}};
//CHECKeq((h10.max_impl(sse2(),int16_t())),10);
cout << h10[0] << endl;
cout << h10 << endl;
cout << h10[9] << endl;
//cout << *(h10.sub_array<int16_t,4,1>(3)) << endl;
CHECK_EXIT;
}