mirror of
https://github.com/holub/mame
synced 2025-06-07 05:13:46 +03:00
parent
dbc62842c1
commit
281ee9063f
@ -431,6 +431,8 @@ namespace plib {
|
|||||||
}
|
}
|
||||||
return p;
|
return p;
|
||||||
#else
|
#else
|
||||||
|
// see https://en.cppreference.com/w/c/memory/aligned_alloc
|
||||||
|
size = ((size + alignment - 1) / alignment) * alignment;
|
||||||
return static_cast<gsl::owner<void *>>(aligned_alloc(alignment, size));
|
return static_cast<gsl::owner<void *>>(aligned_alloc(alignment, size));
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user