Browse Source

Set memalign implementation based on architecture

tags/v1.0
Bernhard Fröhlich 5 years ago
parent
commit
e8dc49092e
2 changed files with 2 additions and 2 deletions
  1. 0
    2
      AESNI.c
  2. 2
    0
      Makefile

+ 0
- 2
AESNI.c View File

@@ -22,8 +22,6 @@
* ===================================================================
*/

#define HAVE_POSIX_MEMALIGN

#include <wmmintrin.h>
#include <stdlib.h>
#include <string.h>

+ 2
- 0
Makefile View File

@@ -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


Loading…
Cancel
Save