Skip to content
New issue

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

Fix compiling with mingw toolchain #44

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/arithmetic_sse_double.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

inline static void* vecalloc(size_t size)
{
#ifdef _MSC_VER
#ifdef _WIN32
void *memblock = _aligned_malloc(size, 16);
#elif defined(__APPLE__)
/* Memory on Mac OS X is already aligned to 16 bytes */
Expand All @@ -59,7 +59,7 @@ inline static void* vecalloc(size_t size)

inline static void vecfree(void *memblock)
{
#ifdef _MSC_VER
#ifdef _WIN32
_aligned_free(memblock);
#else
free(memblock);
Expand Down