mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Move align helpers to util/asm.hpp
Also add some files: GLTextureCache.cpp VKTextureCache.cpp
This commit is contained in:
parent
d254a5736b
commit
eec11bfba9
52 changed files with 794 additions and 713 deletions
|
@ -32,6 +32,8 @@
|
|||
#include <net/if_dl.h>
|
||||
#endif
|
||||
|
||||
#include "util/asm.hpp"
|
||||
|
||||
LOG_CHANNEL(sys_net);
|
||||
LOG_CHANNEL(sceNp2);
|
||||
LOG_CHANNEL(sceNp);
|
||||
|
@ -384,7 +386,7 @@ vm::addr_t np_handler::allocate(u32 size)
|
|||
return vm::cast(static_cast<u64>(0));
|
||||
|
||||
// Align allocs
|
||||
const u32 alloc_size = ::align(size, 4);
|
||||
const u32 alloc_size = utils::align(size, 4);
|
||||
if (alloc_size > mpool_avail)
|
||||
{
|
||||
sceNp.error("Not enough memory available in NP pool!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue