Changed print into printHex
The print in decimal format is not good to validate the packed structure of integers. The hex format is better because it enable us to validate the methods by looking at the position of the packed values
This commit is contained in:
parent
618e5efcfa
commit
a794464432
2 changed files with 10 additions and 4 deletions
|
@ -33,9 +33,9 @@ namespace Core {
|
|||
static const UChar SHIFT_8 = 8;
|
||||
|
||||
template<typename Number>
|
||||
static void print(Number *num,Int len) {
|
||||
static void printHex(Number *num,Int len) {
|
||||
for(int i=0;i<len;i++){
|
||||
cout << num[i] ;
|
||||
cout << hex << num[i] ;
|
||||
if(i<len-1){
|
||||
cout << ",";
|
||||
}
|
||||
|
|
10
sse.cpp
10
sse.cpp
|
@ -30,8 +30,11 @@ int main(int argc, char** argcv){
|
|||
|
||||
long int start,end;
|
||||
|
||||
Utils::print(v1_128,Utils::INT_LEN_128);
|
||||
Utils::print(v2_128,Utils::INT_LEN_128);
|
||||
Utils::printHex(v1_128,Utils::INT_LEN_128);
|
||||
Utils::printHex(v2_128,Utils::INT_LEN_128);
|
||||
|
||||
Utils::printHex(v1_128_l,Utils::LONG_LEN_128);
|
||||
Utils::printHex(v2_128_l,Utils::LONG_LEN_128);
|
||||
|
||||
start = gettime();
|
||||
for(int i=0;i<MAX_ITER;i++){
|
||||
|
@ -54,4 +57,7 @@ int main(int argc, char** argcv){
|
|||
end = gettime();
|
||||
cout << "SSE Approach paddd: " << end-start << endl;
|
||||
|
||||
Utils::printHex(v1_128,Utils::INT_LEN_128);
|
||||
Utils::printHex(v1_128_l,Utils::LONG_LEN_128);
|
||||
|
||||
}
|
Loading…
Reference in a new issue