Skip to content

updated cvRound(), cvFloor() and cvCeil(), cvIsInf(), cvIsNan implementations#22156

Merged
opencv-pushbot merged 1 commit intoopencv:4.xfrom
vpisarev:update_cvround
Jul 1, 2022
Merged

updated cvRound(), cvFloor() and cvCeil(), cvIsInf(), cvIsNan implementations#22156
opencv-pushbot merged 1 commit intoopencv:4.xfrom
vpisarev:update_cvround

Conversation

@vpisarev
Copy link
Copy Markdown
Contributor

@vpisarev vpisarev commented Jun 24, 2022

  • removed the old branch with non-standard rounding completely
  • enable the use of GCC/clang __builtin_*() functions more broadly; now it's not limited to x86, x64, arm and PPC64 archs. Actually, before this patch some of __builtin_*() have been used only inside PPC64 branch. Now they are used everywhere. We assume that GCC/clang provide the necessary intrinsics on all target platforms.

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
build_image:Custom=centos:7
buildworker:Custom=linux-f1

…the old non-banking rounding branch completely

* enable the use of GCC/clang __builtin_*() functions more broadly
@vpisarev vpisarev requested a review from alalek June 24, 2022 13:10
@opencv-pushbot opencv-pushbot merged commit 3bf22d0 into opencv:4.x Jul 1, 2022
@alalek alalek mentioned this pull request Aug 21, 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