diff options
Diffstat (limited to 'BS/baselines/gpu/binary_search.h')
-rw-r--r-- | BS/baselines/gpu/binary_search.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/BS/baselines/gpu/binary_search.h b/BS/baselines/gpu/binary_search.h new file mode 100644 index 0000000..5849506 --- /dev/null +++ b/BS/baselines/gpu/binary_search.h @@ -0,0 +1,18 @@ +#ifndef BINARY_SEARCH_H
+#define BINARY_SEARCH_H
+
+#ifdef _WIN32
+ #include <windows.h>
+ #define DLL_EXPORT __declspec(dllexport)
+#else
+ #define DLL_EXPORT
+#endif
+
+
+extern "C" {
+
+ int DLL_EXPORT binary_search(const long int *arr, const long int len, const long int *querys, const long int num_querys);
+
+}
+
+#endif /* BINARY_SEARCH_H */
|