зеркало из https://github.com/microsoft/SEAL.git
Fixed a bug in SEAL_MALLOC.
This commit is contained in:
Родитель
781c16297c
Коммит
7a19d662db
|
@ -9,7 +9,7 @@ buildscript {
|
|||
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.6.3'
|
||||
classpath 'com.android.tools.build:gradle:3.6.2'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#ifdef SEAL_USE_ALIGNED_ALLOC
|
||||
#include <cstdlib>
|
||||
#define SEAL_MALLOC(size) \
|
||||
static_cast<seal_byte *>((((size) & 63) == 0) ? std::aligned_alloc(64, (size)) : std::malloc((size)))
|
||||
static_cast<seal_byte *>((((size) & 63) == 0) ? ::aligned_alloc(64, (size)) : ::malloc((size)))
|
||||
#define SEAL_FREE(ptr) std::free(ptr)
|
||||
#endif
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#ifdef SEAL_USE_ALIGNED_ALLOC
|
||||
#include <cstdlib>
|
||||
#define SEAL_MALLOC(size) \
|
||||
static_cast<seal_byte *>((((size) & 63) == 0) ? std::aligned_alloc(64, (size)) : std::malloc((size)))
|
||||
static_cast<seal_byte *>((((size) & 63) == 0) ? ::aligned_alloc(64, (size)) : ::malloc((size)))
|
||||
#define SEAL_FREE(ptr) std::free(ptr)
|
||||
#endif
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef SEAL_USE_ALIGNED_ALLOC
|
||||
#define SEAL_MALLOC(size) static_cast<seal_byte *>(_aligned_malloc(64, (alignment)))
|
||||
#define SEAL_MALLOC(size) static_cast<seal_byte *>(_aligned_malloc((size), 64))
|
||||
#define SEAL_FREE(ptr) _aligned_free(ptr)
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче