FastMemcpy icon indicating copy to clipboard operation
FastMemcpy copied to clipboard

FastMemcpy{,_Avx}.c: Mark `memcpy()` as `dllimport` on MinGW and ming…

Open lhmouse opened this issue 7 years ago • 0 comments

…w-w64 targets.

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 Signed-off-by: Liu Hao [email protected]

lhmouse avatar Jan 27 '18 06:01 lhmouse