mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
parent
dbc62842c1
commit
281ee9063f
@ -431,6 +431,8 @@ namespace plib {
|
||||
}
|
||||
return p;
|
||||
#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));
|
||||
#endif
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user