- add support for the popcnt instruction (useful for the Hamming distance, soon to come in BRIEF and FLANN)

This commit is contained in:
Vincent Rabaud
2011-03-13 22:51:33 +00:00
parent 28c2d3b89f
commit 578ca872e4
3 changed files with 3 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ struct HWFeatures
f.have[CV_CPU_SSSE3] = (cpuid_data[2] & (1<<9)) != 0;
f.have[CV_CPU_SSE4_1] = (cpuid_data[2] & (1<<19)) != 0;
f.have[CV_CPU_SSE4_2] = (cpuid_data[2] & (1<<20)) != 0;
f.have[CV_CPU_POPCNT] = (cpuid_data[2] & (1<<23)) != 0;
f.have[CV_CPU_AVX] = (cpuid_data[2] & (1<<28)) != 0;
}