mirror of
https://github.com/simple64/simple64.git
synced 2026-11-01 20:21:52 +01:00
update parallel rdp
This commit is contained in:
1 parent
1f7414444d
commit
dc27483cc9
35 files changed
+4001
-1071
No files matched your search
@@ -34,7 +34,7 @@ void *memalign_alloc(size_t boundary, size_t size)
|
||||
#if defined(_WIN32)
|
||||
return _aligned_malloc(size, boundary);
|
||||
#elif defined(_ISOC11_SOURCE)
|
||||
return aligned_alloc(boundary, size);
|
||||
return aligned_alloc(boundary, (size + boundary - 1) & ~(boundary - 1));
|
||||
#elif (_POSIX_C_SOURCE >= 200112L) || (_XOPEN_SOURCE >= 600)
|
||||
void *ptr = nullptr;
|
||||
if (posix_memalign(&ptr, boundary, size) < 0)
|
||||
|
||||
Reference in new issue
Block a user