Fix Windows ARM64 break (#4343)

This commit is contained in:
Tracy Sharpe 2020-06-25 21:06:18 -07:00 committed by GitHub
parent a37e2e33b4
commit 72fb5183d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 10 deletions

View file

@ -473,4 +473,4 @@ MlasFindMinMaxElement(
float* Min,
float* Max,
size_t N
);
);

View file

@ -753,6 +753,9 @@ MlasPartitionWork(
#ifndef vmaxvq_f32
#define vmaxvq_f32(src) neon_fmaxv(src)
#endif
#ifndef vminvq_f32
#define vminvq_f32(src) neon_fminv(src)
#endif
#endif
//

View file

@ -2369,15 +2369,15 @@ private:
MatrixGuardBuffer<float> BufferInput;
void
Test(
size_t N,
float MinimumValue,
float MaximumValue
)
Test(
size_t N,
float MinimumValue,
float MaximumValue
)
{
float* Input = BufferInput.GetBuffer(N);
std::default_random_engine generator(static_cast< unsigned >(N));
std::default_random_engine generator(static_cast<unsigned>(N));
std::uniform_real_distribution<float> distribution(MinimumValue, MaximumValue);
for (size_t n = 0; n < N; n++) {
@ -2406,9 +2406,9 @@ private:
public:
void
ExecuteShort(
void
) override
ExecuteShort(
void
) override
{
for (size_t n = 1; n < 128; n++) {
Test(n, -10.f, 10.f);