diff options
author | Sayed Adel <seiko@imavr.com> | 2022-06-14 07:58:45 +0200 |
---|---|---|
committer | Sayed Adel <seiko@imavr.com> | 2022-06-14 07:58:45 +0200 |
commit | 01a0d95640d1d375c47a632f09d0ec9322e539b3 (patch) | |
tree | 63e38f62874c5fcbf424ba09a8bbee2a3e3fdb20 /numpy/distutils | |
parent | abc26a351e14c890bdd67785ed4f3c60c637b0fa (diff) | |
download | numpy-01a0d95640d1d375c47a632f09d0ec9322e539b3.tar.gz |
BUG, SIMD: Fix detecting NEON/ASIMD on aarch64
Diffstat (limited to 'numpy/distutils')
-rw-r--r-- | numpy/distutils/checks/cpu_asimd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/checks/cpu_asimd.c b/numpy/distutils/checks/cpu_asimd.c index fc408feb0..6bc9022a5 100644 --- a/numpy/distutils/checks/cpu_asimd.c +++ b/numpy/distutils/checks/cpu_asimd.c @@ -14,7 +14,7 @@ int main(int argc, char **argv) ret += (int)vgetq_lane_f32(vrndq_f32(v1), 0); #ifdef __aarch64__ { - double *src2 = (float*)argv[argc-1]; + double *src2 = (double*)argv[argc-1]; float64x2_t vd1 = vdupq_n_f64(src2[0]), vd2 = vdupq_n_f64(src2[1]); /* MAXMIN */ ret += (int)vgetq_lane_f64(vmaxnmq_f64(vd1, vd2), 0); |