From 3de4b495fb176eba9a0eb517a4ce05903cb67acb Mon Sep 17 00:00:00 2001 From: Juan Gomez Luna Date: Wed, 16 Jun 2021 19:46:05 +0200 Subject: PrIM -- first commit --- BS/baselines/gpu/binary_search.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 BS/baselines/gpu/binary_search.h (limited to 'BS/baselines/gpu/binary_search.h') 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 + #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 */ -- cgit v1.2.3