HF
This commit is contained in:
@ -47,7 +47,7 @@ namespace ia
|
|||||||
UNUSED(hint);
|
UNUSED(hint);
|
||||||
const size_type size = (sizeof(value_type) * count);
|
const size_type size = (sizeof(value_type) * count);
|
||||||
const auto ptr = reinterpret_cast<size_type>(_ia_malloc(size + alignment + sizeof(PVOID)));
|
const auto ptr = reinterpret_cast<size_type>(_ia_malloc(size + alignment + sizeof(PVOID)));
|
||||||
const auto aligned_ptr = reinterpret_cast<size_type>(ptr + sizeof(PVOID) + alignment - (ptr % alignment));
|
const auto aligned_ptr = (size_type)(ptr + sizeof(PVOID) + alignment - (ptr % alignment));
|
||||||
*(reinterpret_cast<size_type*>(aligned_ptr-sizeof(PVOID))) = ptr;
|
*(reinterpret_cast<size_type*>(aligned_ptr-sizeof(PVOID))) = ptr;
|
||||||
return reinterpret_cast<pointer_type>(aligned_ptr);
|
return reinterpret_cast<pointer_type>(aligned_ptr);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,12 +27,6 @@
|
|||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <initializer_list>
|
#include <initializer_list>
|
||||||
|
|
||||||
#if defined (_MSC_VER )
|
|
||||||
#if !defined(__clang__)
|
|
||||||
#error "IA software does not support compilation with MSVC. Please use Clang on Windows platforms."
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define IAC_SEC_LEVEL(v) (IACORE_SECURITY_LEVEL >= v)
|
#define IAC_SEC_LEVEL(v) (IACORE_SECURITY_LEVEL >= v)
|
||||||
|
|
||||||
#define IA_DEFINED_TRUE(o) (defined(o) && (o > 0))
|
#define IA_DEFINED_TRUE(o) (defined(o) && (o > 0))
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
add_executable(IACoreTest imp/cpp/Main.cpp)
|
add_executable(IACoreTest imp/cpp/Main.cpp)
|
||||||
|
|
||||||
target_compile_options(IACoreTest PRIVATE
|
target_compile_options(IACoreTest PRIVATE
|
||||||
"-g"
|
|
||||||
"-O0"
|
|
||||||
"-D__IA_DEBUG=1"
|
"-D__IA_DEBUG=1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user