Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lhmouse
Copy link

@lhmouse lhmouse commented Jan 27, 2018

…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]

…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 lhmouse mentioned this pull request Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant