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

port aligned malloc to Windows #3

Merged
merged 1 commit into from
Jul 1, 2016

Conversation

starius
Copy link
Contributor

@starius starius commented Jun 25, 2016

Windows lacks posix_memalign, but Linux lacks _aligned_malloc. This patch adds functions C aligned64_malloc and free64_malloc where the proper implementation is selected using C preprocessor.

The code is based on http://stackoverflow.com/q/16376942/1293417

Windows lacks posix_memalign, but Linux lacks _aligned_malloc.
This patch adds functions C aligned64_malloc and free64_malloc
where the proper implementation is selected using C preprocessor.

The code is based on http://stackoverflow.com/q/16376942/1293417
@flier
Copy link
Owner

flier commented Jul 1, 2016

Great works, thanks :)

@flier flier merged commit 2b7c83c into flier:master Jul 1, 2016
@starius starius deleted the aligned-malloc-port-windows branch July 1, 2016 08:14
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.

2 participants