{"action":"closed","issue":{"url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/513","repository_url":"https://api.github.com/repos/Itseez/opencv_contrib","labels_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/513/comments","events_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/513/events","html_url":"https://github.com/Itseez/opencv_contrib/issues/513","id":126279182,"number":513,"title":"Build fails in stereo/include/opencv2/stereo/matching.hpp - Incorrect test for existence of POPCNT","user":{"login":"SSteve","id":523551,"avatar_url":"https://avatars.githubusercontent.com/u/523551?v=3","gravatar_id":"","url":"https://api.github.com/users/SSteve","html_url":"https://github.com/SSteve","followers_url":"https://api.github.com/users/SSteve/followers","following_url":"https://api.github.com/users/SSteve/following{/other_user}","gists_url":"https://api.github.com/users/SSteve/gists{/gist_id}","starred_url":"https://api.github.com/users/SSteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SSteve/subscriptions","organizations_url":"https://api.github.com/users/SSteve/orgs","repos_url":"https://api.github.com/users/SSteve/repos","events_url":"https://api.github.com/users/SSteve/events{/privacy}","received_events_url":"https://api.github.com/users/SSteve/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv_contrib/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Itseez/opencv_contrib/labels/category:%20stereo","name":"category: stereo","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-12T21:24:07Z","updated_at":"2016-02-09T08:18:08Z","closed_at":"2016-02-09T08:18:08Z","body":"matching.hpp incorrectly tests for the existence of POPCNT with `#if CV_SSE4_1`. This causes a build failure on a Core2Duo MacBook Pro. According to [Wikipedia (with a link to the Intel reference)](https://en.wikipedia.org/wiki/SSE4#POPCNT_and_LZCNT) \"*although introduced by AMD with the SSE4a instruction set, they are counted as separate extensions with their own dedicated CPUID bits to indicate support*\". Support for POPCNT is indicated via the CPUID.01H:ECX.POPCNT[Bit 23] flag, not `CV_SSE4_1`."}}