We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite-vec/sqlite-vec.c
Lines 119 to 122 in ee36547
Currently this causes SQLITE_VEC_ENABLE_AVX to fail with MSVC
SQLITE_VEC_ENABLE_AVX
prolly should be something like:
#ifdef SQLITE_VEC_ENABLE_AVX #include <immintrin.h> #ifdef _MSC_VER // Visual Studio #define PORTABLE_ALIGN32 __declspec(align(32)) #define PORTABLE_ALIGN64 __declspec(align(64)) #else #define PORTABLE_ALIGN32 __attribute__((aligned(32))) #define PORTABLE_ALIGN64 __attribute__((aligned(64))) #endif
(this compiles on my computer with MSVC, and seems to function correctly with my dataset)
Or more elifdefs for other compilers I'm not aware of
elifdef
I can submit PR if this fix is acceptable, or suggestions provided
The text was updated successfully, but these errors were encountered:
No branches or pull requests
sqlite-vec/sqlite-vec.c
Lines 119 to 122 in ee36547
Currently this causes
SQLITE_VEC_ENABLE_AVX
to fail with MSVCprolly should be something like:
(this compiles on my computer with MSVC, and seems to function correctly with my dataset)
Or more
elifdef
s for other compilers I'm not aware ofI can submit PR if this fix is acceptable, or suggestions provided
The text was updated successfully, but these errors were encountered: