Skip to content

Commit

Permalink
BUG, SIMD: Fix detecting NEON/ASIMD on aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
seiko2plus authored and charris committed Jun 14, 2022
1 parent 5c598ed commit 3b792f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/distutils/checks/cpu_asimd.c
Expand Up @@ -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);
Expand Down

0 comments on commit 3b792f1

Please sign in to comment.