mirror of
https://github.com/microsoft/DirectXMath
synced 2024-11-21 20:00:12 +00:00
Code review for DirectXMatrixStack
This commit is contained in:
parent
057ef1d788
commit
c40dc75a5b
@ -16,7 +16,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ namespace DirectX
|
|||||||
{
|
{
|
||||||
void operator()(void* p) noexcept
|
void operator()(void* p) noexcept
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
_aligned_free(p);
|
_aligned_free(p);
|
||||||
#else
|
#else
|
||||||
free(p);
|
free(p);
|
||||||
@ -214,7 +214,7 @@ namespace DirectX
|
|||||||
|
|
||||||
void Allocate(size_t newSize)
|
void Allocate(size_t newSize)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
void* ptr = _aligned_malloc(newSize * sizeof(XMMATRIX), 16);
|
void* ptr = _aligned_malloc(newSize * sizeof(XMMATRIX), 16);
|
||||||
#else
|
#else
|
||||||
// This C++17 Standard Library function is currently NOT
|
// This C++17 Standard Library function is currently NOT
|
||||||
|
Loading…
Reference in New Issue
Block a user