Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2020-01-21 01:16:33 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2020-01-21 01:21:43 +0300
commit7d789239675d5719694e1ccca9cc657717f461d2 (patch)
tree2ae50a7d25e6720edf1002aa5e631cef366ce312 /server/TracySort.hpp
parent6f31eb2a9d9807b22c0f36adb2fb5dfe1bef9a94 (diff)
Move parallel sort header mumbo jumbo to a separate file.
Diffstat (limited to 'server/TracySort.hpp')
-rw-r--r--server/TracySort.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/server/TracySort.hpp b/server/TracySort.hpp
new file mode 100644
index 00000000..1fa609c7
--- /dev/null
+++ b/server/TracySort.hpp
@@ -0,0 +1,20 @@
+#ifndef __TRACYSORT_HPP__
+#define __TRACYSORT_HPP__
+
+#if ( defined _MSC_VER && _MSVC_LANG >= 201703L ) || __cplusplus >= 201703L
+# if __has_include(<execution>)
+# include <algorithm>
+# include <execution>
+# else
+# define NO_PARALLEL_SORT
+# endif
+#else
+# define NO_PARALLEL_SORT
+#endif
+
+#ifdef NO_PARALLEL_SORT
+# include "tracy_pdqsort.h"
+#endif
+
+
+#endif