diff options
author | Juan Gomez Luna <juan.gomez@safari.ethz.ch> | 2021-06-16 19:46:05 +0200 |
---|---|---|
committer | Juan Gomez Luna <juan.gomez@safari.ethz.ch> | 2021-06-16 19:46:05 +0200 |
commit | 3de4b495fb176eba9a0eb517a4ce05903cb67acb (patch) | |
tree | fc6776a94549d2d4039898f183dbbeb2ce013ba9 /BS/baselines/gpu/binary_search.h | |
parent | ef5c3688c486b80a56d3c1cded25f2b2387f2668 (diff) |
PrIM -- first commit
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 */
|