We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8766b0 commit 8c5e56aCopy full SHA for 8c5e56a
SPlisHSPlasH/Utilities/AVX_math.h
@@ -2037,7 +2037,7 @@ class AlignmentAllocator {
2037
inline pointer allocate(size_type n) {
2038
#ifdef _WIN32
2039
return (pointer)_aligned_malloc(n * sizeof(value_type), N);
2040
-#elif __linux__
+#elif defined(__linux__) || defined(__APPLE__)
2041
// NB! Argument order is opposite from MSVC/Windows
2042
return (pointer) aligned_alloc(N, n * sizeof(value_type));
2043
#else
@@ -2048,7 +2048,7 @@ class AlignmentAllocator {
2048
inline void deallocate(pointer p, size_type) {
2049
2050
_aligned_free(p);
2051
2052
free(p);
2053
2054
#error "Unknown platform"
0 commit comments