We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7386c3 commit 92de2caCopy full SHA for 92de2ca
src/core/common/ojph_mem.h
@@ -48,6 +48,29 @@
48
49
namespace ojph {
50
51
+ ////////////////////////////////////////////////////////////////////////////
52
+#ifdef OJPH_OS_WINDOWS
53
+ void* inline ojph_aligned_malloc(size_t alignment, size_t size)
54
+ {
55
+ return _aligned_malloc(size, alignment);
56
+ }
57
+
58
+ void inline ojph_aligned_free(void* pointer)
59
60
+ return _aligned_free(pointer);
61
62
+#else
63
64
65
+ return aligned_alloc(alignment, size);
66
67
68
69
70
+ return free(pointer);
71
72
+#endif
73
74
/////////////////////////////////////////////////////////////////////////////
75
class mem_fixed_allocator
76
{
0 commit comments