mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 08:39:51 +00:00
x86jit: Fix params in Replace_fabsf.
This commit is contained in:
parent
7814cdced2
commit
419b960403
@ -27,8 +27,6 @@
|
||||
#define new DBG_NEW
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
static const char *validationLayers[] = {
|
||||
"VK_LAYER_LUNARG_standard_validation",
|
||||
/*
|
||||
|
@ -27,7 +27,7 @@ using namespace Gen;
|
||||
|
||||
int Jit::Replace_fabsf() {
|
||||
fpr.SpillLock(0, 12);
|
||||
fpr.MapReg(0, MAP_DIRTY | MAP_NOINIT);
|
||||
fpr.MapReg(0, false, true);
|
||||
MOVSS(fpr.RX(0), fpr.R(12));
|
||||
ANDPS(fpr.RX(0), M(&ssNoSignMask));
|
||||
fpr.ReleaseSpillLocks();
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include "GPU/GLES/Framebuffer.h"
|
||||
|
||||
static const int leftColumnWidth = 200;
|
||||
static const float orgRatio = 1.764706;
|
||||
static const float orgRatio = 1.764706f;
|
||||
|
||||
// Ugly hackery, need to rework some stuff to get around this
|
||||
static float local_dp_xres;
|
||||
|
@ -58,7 +58,6 @@
|
||||
#include "util/text/utf8.h"
|
||||
#include "Windows/W32Util/ShellUtil.h"
|
||||
#include "Windows/W32Util/Misc.h"
|
||||
using namespace std;
|
||||
|
||||
#endif
|
||||
|
||||
@ -729,7 +728,7 @@ UI::EventReturn GameSettingsScreen::OnSavePathMydoc(UI::EventParams &e) {
|
||||
g_Config.memStickDirectory = PPSSPPpath + "memstick/";
|
||||
}
|
||||
else {
|
||||
ofstream myfile;
|
||||
std::ofstream myfile;
|
||||
myfile.open(PPSSPPpath + "installed.txt");
|
||||
if (myfile.is_open()){
|
||||
myfile.close();
|
||||
|
@ -6,7 +6,6 @@
|
||||
#ifdef _WIN32
|
||||
#pragma warning(disable:4244)
|
||||
#pragma warning(disable:4996)
|
||||
#pragma warning(disable:4305) // truncation from double to float
|
||||
#endif
|
||||
|
||||
#define DISALLOW_COPY_AND_ASSIGN(t) \
|
||||
|
@ -202,7 +202,7 @@ void fcs2(float theta, float &outsine, float &outcosine) {
|
||||
|
||||
float x = 2 * gamma - gamma * fabs(gamma);
|
||||
float y = 2 * theta - theta * fabs(theta);
|
||||
const float P = 0.225;
|
||||
const float P = 0.225f;
|
||||
outsine = P * (y * fabsf(y) - y) + y; // Q * y + P * y * abs(y)
|
||||
outcosine = P * (x * fabsf(x) - x) + x; // Q * y + P * y * abs(y)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user