Skip to content

WINCE 8.0 requires ARMv7 Thumb2 and thus have NEON instructions#15265

Merged
alalek merged 2 commits intoopencv:3.4from
hugolm84:wince-armv7-supports-neon
Aug 9, 2019
Merged

WINCE 8.0 requires ARMv7 Thumb2 and thus have NEON instructions#15265
alalek merged 2 commits intoopencv:3.4from
hugolm84:wince-armv7-supports-neon

Conversation

@hugolm84
Copy link
Copy Markdown
Contributor

@hugolm84 hugolm84 commented Aug 8, 2019

This pullrequest changes

This fixes a cv::exception being thrown when trying to use OpenCV and WINCE on ARMv7 Thumb2.

#endif

#if (defined(_WIN32_WCE) && _WIN32_WCE >= 0x800)
have[CV_CPU_NEON] = true;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this should be under defined __arm__ or _M_ARM condition.

Copy link
Copy Markdown
Contributor Author

@hugolm84 hugolm84 Aug 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi

The WINCE toolchain defines /D_WIN32_WCE=0x800 /DUNDER_CE /DWINCE /DARM /D_ARM_ /DARMV7 /D_WINDOWS. I could add

#if defined __arm__ || defined _ARM_
#if defined _WIN32_WCE && _WIN32_WINCE >= 0x800
...
#elif __linux__
...
#elif
...
#endif

But feelt much more convoluted. Perhaps

#if defined _ARM_ && defined _WIN32_WCE && _WIN32_WINCE >= 0x800
...
#endif

would suffice?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as you wish

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I went with the ARM solution

@alalek alalek merged commit 935067e into opencv:3.4 Aug 9, 2019
@alalek alalek mentioned this pull request Aug 13, 2019
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.

2 participants