|
|
|
|
99
|
{
|
99
|
{
|
100
|
auto result1 = testDK(val1, MAX_SIZE);
|
100
|
auto result1 = testDK(val1, MAX_SIZE);
|
101
|
auto result2 = testSTL(val2, MAX_SIZE);
|
101
|
auto result2 = testSTL(val2, MAX_SIZE);
|
102
|
- if (result1.Value<0>().Compare(result2.Value<0>()))
|
|
|
103
|
- DKLogE("Hash Compare: %d (ERROR)", result1.Value<0>().Compare(result2.Value<0>()));
|
|
|
|
|
102
|
+ if (result1.template Value<0>().Compare(result2.template Value<0>()))
|
|
|
103
|
+ DKLogE("Hash Compare: %d (ERROR)", result1.template Value<0>().Compare(result2.template Value<0>()));
|
104
|
else
|
104
|
else
|
105
|
DKLogI("Hash compare: %d (time: %f)",
|
105
|
DKLogI("Hash compare: %d (time: %f)",
|
106
|
- result1.Value<0>().Compare(result2.Value<0>()),
|
|
|
107
|
- result1.Value<1>() - result2.Value<1>());
|
|
|
|
|
106
|
+ result1.template Value<0>().Compare(result2.template Value<0>()),
|
|
|
107
|
+ result1.template Value<1>() - result2.template Value<1>());
|
108
|
}
|
108
|
}
|
109
|
else
|
109
|
else
|
110
|
{
|
110
|
{
|
111
|
auto result1 = testSTL(val1, MAX_SIZE);
|
111
|
auto result1 = testSTL(val1, MAX_SIZE);
|
112
|
auto result2 = testDK(val2, MAX_SIZE);
|
112
|
auto result2 = testDK(val2, MAX_SIZE);
|
113
|
- if (result1.Value<0>().Compare(result2.Value<0>()))
|
|
|
114
|
- DKLogE("Hash Compare: %d (ERROR)", result1.Value<0>().Compare(result2.Value<0>()));
|
|
|
|
|
113
|
+ if (result1.template Value<0>().Compare(result2.template Value<0>()))
|
|
|
114
|
+ DKLogE("Hash Compare: %d (ERROR)", result1.template Value<0>().Compare(result2.template Value<0>()));
|
115
|
else
|
115
|
else
|
116
|
DKLogI("Hash compare: %d (time: %f)",
|
116
|
DKLogI("Hash compare: %d (time: %f)",
|
117
|
- result1.Value<0>().Compare(result2.Value<0>()),
|
|
|
118
|
- result1.Value<1>() - result2.Value<1>());
|
|
|
|
|
117
|
+ result1.template Value<0>().Compare(result2.template Value<0>()),
|
|
|
118
|
+ result1.template Value<1>() - result2.template Value<1>());
|
119
|
}
|
119
|
}
|
120
|
|
120
|
|
121
|
delete[] val1;
|
121
|
delete[] val1;
|