Skip to content
Permalink
Browse files

Set memalign implementation based on architecture

  • Loading branch information...
decke committed Jun 4, 2014
1 parent 08a9b3c commit e8dc49092e1ed0db67ecd6dcfba99e8ed39fc6f3
Showing with 2 additions and 2 deletions.
  1. +0 −2 AESNI.c
  2. +2 −0 Makefile
@@ -22,8 +22,6 @@
* ===================================================================
*/

#define HAVE_POSIX_MEMALIGN

#include <wmmintrin.h>
#include <stdlib.h>
#include <string.h>
@@ -18,8 +18,10 @@ CFLAGS += -O2

# we need to link to libc/msvcrt
ifeq ($(OS),Windows_NT)
CFLAGS += -DHAVE__ALIGNED_MALLOC
LDFLAGS += -lmsvcrt
else
CFLAGS += -DHAVE_POSIX_MEMALIGN
LDFLAGS += -lc
endif

0 comments on commit e8dc490

Please sign in to comment.
You can’t perform that action at this time.