Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions FastMemcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
#error it can only be compiled under windows or unix
#endif

#ifdef __MINGW32__
/* On MinGW and mingw-w64 targets, `memcpy()` is imported from MSVCRT.DLL.
* With regard to benchmarking purposes, we have to eliminate the overhead
* of implicit importation by specifying `dllexport` explicitly.
*
* Reference: https://gcc.gnu.org/onlinedocs/gcc/Microsoft-Windows-Function-Attributes.html#index-dllimport-function-attribute
*/
__declspec(dllimport) extern void * memcpy(void *, const void *, size_t);
#endif

#include "FastMemcpy.h"

unsigned int gettime()
Expand Down
10 changes: 10 additions & 0 deletions FastMemcpy_Avx.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
#error it can only be compiled under windows or unix
#endif

#ifdef __MINGW32__
/* On MinGW and mingw-w64 targets, `memcpy()` is imported from MSVCRT.DLL.
* With regard to benchmarking purposes, we have to eliminate the overhead
* of implicit importation by specifying `dllexport` explicitly.
*
* Reference: https://gcc.gnu.org/onlinedocs/gcc/Microsoft-Windows-Function-Attributes.html#index-dllimport-function-attribute
*/
__declspec(dllimport) extern void * memcpy(void *, const void *, size_t);
#endif

#include "FastMemcpy_Avx.h"


Expand Down