Skip to content

Fix VSX detection on FreeBSD#21514

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
pkubaj:patch-1
Jan 25, 2022
Merged

Fix VSX detection on FreeBSD#21514
opencv-pushbot merged 1 commit intoopencv:3.4from
pkubaj:patch-1

Conversation

@pkubaj
Copy link
Copy Markdown
Contributor

@pkubaj pkubaj commented Jan 25, 2022

hwcap should actually be long.

I set it initially as long, since I referenced the Linux code, but it looks like it causes issues on FreeBSD, while long works fine. While researching this, I noticed that HWCAP is actually long everywhere, so you might want to switch Linux to long as well.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake
force_builders=Custom
buildworker:Custom=linux-4,linux-6
build_image:Custom=powerpc64le

hwcap should actually be long.
@pkubaj pkubaj changed the base branch from 4.x to 3.4 January 25, 2022 13:48
@opencv-pushbot opencv-pushbot merged commit 906f5f7 into opencv:3.4 Jan 25, 2022
@alalek alalek mentioned this pull request Jan 28, 2022
@alalek alalek mentioned this pull request Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants