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

Surround "#pragma clang" with checks for Clang #192

Open mbautin opened 1 month ago

mbautin commented 1 month ago

This is to prevent compilation issues on GCC 12 and GCC13.

These changes were performed automatically by the following script: https://gist.githubusercontent.com/mbautin/9a9ec9933dd4daf954b2a878f48a8048/raw (generated by ChatGPT).

ashvardanian commented 1 month ago

Thanks for the contribution, @mbautin! I think we should safeguard those pragmas symmetrically for both GCC and Clang. I will take your PR as a starting point and augment it with more #if. Will merge in a few days 🤗