28 template<
typename T1,
typename T2>
32 for (int32_t i=0; i < len; ++i)
33 dist += static_cast<int32_t>(
CMath::abs((c1[i]-c2[i])));
static int32_t hamming_distance(T1 *c1, T2 *c2, int32_t len)
static T abs(T a)
return the absolute value of a number