ashvardanian / SimSIMD

Up to 200x Faster Dot Products & Similarity Metrics — for Python, Rust, C, JS, and Swift, supporting f64, f32, f16 real & complex, i8, and bit vectors using SIMD for both AVX2, AVX-512, NEON, SVE, & SVE2 📐
https://ashvardanian.com/posts/simsimd-faster-scipy/
Apache License 2.0
988 stars 59 forks source link

Fix: `__ARM_ARCH` redefinition warnings #164

Closed MarkReedZ closed 2 months ago

MarkReedZ commented 2 months ago

Fixes https://github.com/ashvardanian/SimSIMD/issues/158 by removing the old warning workaround which presumably is no longer needed. If this was a compiler bug on an older compiler which we still want to support we'll need a different fix as detailed in the issue.

#if defined(__ARM_ARCH)
#define SIMSIMD_DEFAULT_TARGET_ARM __ARM_ARCH
#undef __ARM_ARCH
#endif
MarkReedZ commented 2 months ago

These warning workaround were just recently added. So I suspect I need to reproduce the setup that saw them.

https://github.com/ashvardanian/SimSIMD/commit/e975cc9e