Skip to content
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

Exclude _mm_malloc/free definitions on Windows #541

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

invertego
Copy link
Collaborator

Definitions for these functions are provided by malloc.h from both MinGW-w64 and MSVC. When they are defined again by sse2neon, it causes multiple definition errors. Furthermore, the implementation in sse2neon relies on posix_memalign which is unavailable on Windows.

sse2neon.h Outdated Show resolved Hide resolved
@jserv
Copy link
Member

jserv commented Oct 18, 2022

By the way, are you able to build SSE2NEON with MSVC?

Definitions for these functions are provided by malloc.h from both
MinGW-w64 and MSVC. When they are defined again by sse2neon, it causes
multiple definition errors. Furthermore, the implementation in sse2neon
relies on posix_memalign which is unavailable on Windows.
@invertego
Copy link
Collaborator Author

By the way, are you able to build SSE2NEON with MSVC?

I've started looking at it. If I complete the work, I'll send a separate PR.

@jserv jserv merged commit 52861d4 into DLTcollab:master Oct 18, 2022
@jserv
Copy link
Member

jserv commented Oct 18, 2022

Thank @invertego for contributing!

@invertego invertego deleted the mm_malloc_win32 branch October 19, 2022 05:20
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.

None yet

2 participants