Merge pull request #2038 from DaydreamCoding/patch-11

Fix VecHalf.hpp not include neon header
This commit is contained in:
jxt1234 2022-09-05 10:33:40 +08:00 committed by GitHub
commit 41db47f2c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 6 deletions

View File

@ -12,6 +12,18 @@
#include <stdint.h>
#include <array>
#include <algorithm> // supply std::max and std::min
#ifdef MNN_USE_NEON
#include <arm_neon.h>
#endif
#ifdef MNN_USE_SSE
#if defined(_MSC_VER)
#include <intrin.h>
#else
#include <x86intrin.h>
#endif
#endif
namespace MNN {
namespace Math {
@ -160,11 +172,6 @@ struct VecHalf {
};
#if defined(MNN_USE_SSE)
#if defined(_MSC_VER)
#include <intrin.h>
#else
#include <x86intrin.h>
#endif
template<>
struct VecHalf<4> {
@ -310,7 +317,6 @@ struct VecHalf<4> {
#endif
#if defined(MNN_USE_NEON)
#include <arm_neon.h>
template<>
struct VecHalf<4> {