mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 18:07:08 +08:00
Merge pull request #13865 from lsr0:flann_cudacc
This commit is contained in:
commit
6e34d2778f
@ -47,7 +47,7 @@ typedef unsigned __int64 uint64_t;
|
|||||||
# include <Intrin.h>
|
# include <Intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __ARM_NEON__
|
#if defined(__ARM_NEON__) && !defined(__CUDACC__)
|
||||||
# include "arm_neon.h"
|
# include "arm_neon.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -425,7 +425,7 @@ struct Hamming
|
|||||||
ResultType operator()(Iterator1 a, Iterator2 b, size_t size, ResultType /*worst_dist*/ = -1) const
|
ResultType operator()(Iterator1 a, Iterator2 b, size_t size, ResultType /*worst_dist*/ = -1) const
|
||||||
{
|
{
|
||||||
ResultType result = 0;
|
ResultType result = 0;
|
||||||
#ifdef __ARM_NEON__
|
#if defined(__ARM_NEON__) && !defined(__CUDACC__)
|
||||||
{
|
{
|
||||||
uint32x4_t bits = vmovq_n_u32(0);
|
uint32x4_t bits = vmovq_n_u32(0);
|
||||||
for (size_t i = 0; i < size; i += 16) {
|
for (size_t i = 0; i < size; i += 16) {
|
||||||
|
Loading…
Reference in New Issue
Block a user