Commit 04049da0 authored by Steve Nicholson's avatar Steve Nicholson

Use correct test for existence of CPU's POPCNT feature

parent 10ad8a91
...@@ -170,7 +170,7 @@ namespace cv ...@@ -170,7 +170,7 @@ namespace cv
{ {
j2 = (0 > j - d) ? (0) : (j - d); j2 = (0 > j - d) ? (0) : (j - d);
xorul = left[(iwj)] ^ right[(iw + j2)]; xorul = left[(iwj)] ^ right[(iw + j2)];
#if CV_SSE4_1 #if CV_POPCNT
c[(iwj)* (v + 1) + d] = (short)_mm_popcnt_u32(xorul); c[(iwj)* (v + 1) + d] = (short)_mm_popcnt_u32(xorul);
#else #else
c[(iwj)* (v + 1) + d] = (short)(hammLut[xorul & MASK] + hammLut[(xorul >> 16) & MASK]); c[(iwj)* (v + 1) + d] = (short)(hammLut[xorul & MASK] + hammLut[(xorul >> 16) & MASK]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment