mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +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
|
@ -20,6 +20,7 @@
|
|||
#include "Emu/Cell/lv2/sys_process.h"
|
||||
|
||||
#include <cmath>
|
||||
#include "util/asm.hpp"
|
||||
|
||||
LOG_CHANNEL(sceNpTrophy);
|
||||
|
||||
|
@ -1109,7 +1110,7 @@ error_code sceNpTrophyGetGameProgress(u32 context, u32 handle, vm::ptr<s32> perc
|
|||
const u32 trp_count = ctxt->tropusr->GetTrophiesCount();
|
||||
|
||||
// Round result to nearest (TODO: Check 0 trophies)
|
||||
*percentage = trp_count ? ::rounded_div(unlocked * 100, trp_count) : 0;
|
||||
*percentage = trp_count ? utils::rounded_div(unlocked * 100, trp_count) : 0;
|
||||
|
||||
if (trp_count == 0 || trp_count > 128)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue