diff options
| author | Sayed Adel <seiko@imavr.com> | 2023-01-09 09:53:51 +0200 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2023-01-16 15:15:01 -0700 |
| commit | 8d5d442bbf4b99fb72646e8f28e2e6948585321c (patch) | |
| tree | 0c053a401ed642232aed1bc9147fb72d8150b18b /numpy | |
| parent | c2ab45cff3828257fdf6d9969328002f47dbeec2 (diff) | |
| download | numpy-8d5d442bbf4b99fb72646e8f28e2e6948585321c.tar.gz | |
BLD, SIMD: Pad asm to avoid C99 complains on CLANG
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/src/common/simd/neon/operators.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/common/simd/neon/operators.h b/numpy/core/src/common/simd/neon/operators.h index c7f5d2018..e18ea94b8 100644 --- a/numpy/core/src/common/simd/neon/operators.h +++ b/numpy/core/src/common/simd/neon/operators.h @@ -249,9 +249,9 @@ NPY_FINLINE npyv_b32 npyv_notnan_f32(npyv_f32 a) */ npyv_b32 ret; #if NPY_SIMD_F64 - asm ("fcmeq %0.4s, %1.4s, %1.4s" : "=w" (ret) : "w" (a)); + __asm("fcmeq %0.4s, %1.4s, %1.4s" : "=w" (ret) : "w" (a)); #else - asm ("vceq.f32 %q0, %q1, %q1" : "=w" (ret) : "w" (a)); + __asm("vceq.f32 %q0, %q1, %q1" : "=w" (ret) : "w" (a)); #endif return ret; #else @@ -263,7 +263,7 @@ NPY_FINLINE npyv_b32 npyv_notnan_f32(npyv_f32 a) { #if defined(__clang__) npyv_b64 ret; - asm ("fcmeq %0.2d, %1.2d, %1.2d" : "=w" (ret) : "w" (a)); + __asm("fcmeq %0.2d, %1.2d, %1.2d" : "=w" (ret) : "w" (a)); return ret; #else return vceqq_f64(a, a); |
