mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 01:06:19 +00:00
Fix compile
This commit is contained in:
parent
d518f6b730
commit
a6195bcee7
1 changed files with 2 additions and 1 deletions
|
@ -365,6 +365,7 @@ typedef unsigned int uint; // at least 32bits (depend of processor)
|
||||||
inline void *aligned_malloc(size_t size, size_t alignment) { return _aligned_malloc(size, alignment); }
|
inline void *aligned_malloc(size_t size, size_t alignment) { return _aligned_malloc(size, alignment); }
|
||||||
inline void aligned_free(void *ptr) { _aligned_free(ptr); }
|
inline void aligned_free(void *ptr) { _aligned_free(ptr); }
|
||||||
#else
|
#else
|
||||||
|
#include <malloc.h>
|
||||||
inline void *aligned_malloc(size_t size, size_t alignment) { return memalign(alignment, size); }
|
inline void *aligned_malloc(size_t size, size_t alignment) { return memalign(alignment, size); }
|
||||||
inline void aligned_free(void *ptr) { free(ptr); }
|
inline void aligned_free(void *ptr) { free(ptr); }
|
||||||
#endif /* NL_COMP_ */
|
#endif /* NL_COMP_ */
|
||||||
|
@ -383,7 +384,7 @@ extern void operator delete[](void *p) throw();
|
||||||
#else /* NL_HAS_SSE2 */
|
#else /* NL_HAS_SSE2 */
|
||||||
|
|
||||||
#define NL_DEFAULT_MEMORY_ALIGNMENT 4
|
#define NL_DEFAULT_MEMORY_ALIGNMENT 4
|
||||||
#define NL_ALIGN_SSE2
|
#define NL_ALIGN_SSE2
|
||||||
|
|
||||||
#endif /* NL_HAS_SSE2 */
|
#endif /* NL_HAS_SSE2 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue