#include #include #include #include #include "src/core/cpu/naive.hpp" #include "src/core/cpu/sse.hpp" using namespace core::cpu; long int gettime(){ struct timeval tp; gettimeofday(&tp, NULL); long int ms = tp.tv_sec * 1000 + tp.tv_usec / 1000; return ms; }; #define MAX_ITER 1000*1000*100 int main(int argc, char** argcv){ int v1_128[Naive::INT_LEN_128] = { 0x1, 0x2,0x3,0x4 }; int v2_128[Naive::INT_LEN_128] = { 0x1, 0x2,0x3,0x4 }; long v1_128_l[Naive::LONG_LEN_128] = { (long)0x2<<32 | 0x2, (long)0x4<<32 | 0x3 }; long v2_128_l[Naive::LONG_LEN_128] = { (long)0x2<<32 | 0x2, (long)0x4<<32 | 0x3 }; long int start,end; Naive::print(v1_128,Naive::INT_LEN_128); Naive::print(v2_128,Naive::INT_LEN_128); start = gettime(); for(int i=0;i