ashvardanian / StringZilla

Up to 10x faster strings for C, C++, Python, Rust, and Swift, leveraging NEON, AVX2, AVX-512, and SWAR to accelerate search, sort, edit distances, alignment scores, etc 🦖
https://ashvardanian.com/posts/stringzilla/
Apache License 2.0
2.05k stars 66 forks source link

Added: Macro SZ_NULL_CHAR, Clang-CL instrinsics. #88

Closed WillisMedwell closed 6 months ago

WillisMedwell commented 7 months ago

Despite declaring it as extern "C", MSVC and Clang-Cl both still enforce that you cannot convert a void0 (r-value) to a char for some reason. As such had to added SZ_NULL_CHAR.

Clang-Cl also picks and chooses when it wants to use MSVC intrinsics over clang instrinsics, so added fixes for those issues.

Also cmakelist.txt just assumed PIC even tho it might not be available, so added a check.

NOTE: None of this code is tested as, both Clang-Cl and MSVC are not able to build any of the tests on my machine despite best efforts. #84

ashvardanian commented 6 months ago

:tada: This PR is included in version 3.1.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: