intel / ARM_NEON_2_x86_SSE

The platform independent header allowing to compile any C/C++ code containing ARM NEON intrinsic functions for x86 target systems using SIMD up to AVX2 intrinsic functions
Other
431 stars 150 forks source link

Add const specifier to vst*() #22

Closed maxint closed 5 years ago

maxint commented 5 years ago

To avoid compile error for code as following

float32x4_t xv2, yv2;
float xy_f[8];
const float32x4x2_t r = {{ xv2, yv2 }};
vst2q_f32(xy_f, r);
Zvictoria commented 5 years ago

Thanks for the patch. The code looks better now. But just out of pure curiosity - which compiler complains about this const specifier? The ones tried by me don't do that :)

maxint commented 5 years ago

It's my pleasure and thanks for such handy open source. The compilers are VS2017 and clang. Those are old code. Now I am also tried to add const specifier when writing SIMD code :)