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.
2 parents d3c2169 + c0d9e6d commit 868696dCopy full SHA for 868696d
src/avx2-64bit-qsort.hpp
@@ -379,6 +379,19 @@ struct avx2_vector<uint64_t> {
379
return v;
380
}
381
};
382
+
383
+/*
384
+ * workaround on 64-bit macOS which defines size_t as unsigned long and defines
385
+ * uint64_t as unsigned long long, both of which are 8 bytes
386
+ */
387
+#if defined(__APPLE__) && defined(__x86_64__)
388
+static_assert(sizeof(size_t) == sizeof(uint64_t),
389
+ "Size of size_t and uint64_t are not the same");
390
+template <>
391
+struct avx2_vector<size_t> : public avx2_vector<uint64_t> {
392
+};
393
+#endif
394
395
template <>
396
struct avx2_vector<double> {
397
using type_t = double;
0 commit comments