x86jit: Fix params in Replace_fabsf.

This commit is contained in:
Unknown W. Brackets 2016-05-31 10:40:14 -07:00
parent 7814cdced2
commit 419b960403
6 changed files with 4 additions and 8 deletions

View File

@ -27,8 +27,6 @@
#define new DBG_NEW
#endif
using namespace std;
static const char *validationLayers[] = {
"VK_LAYER_LUNARG_standard_validation",
/*

View File

@ -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();

View File

@ -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;

View File

@ -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();

View File

@ -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) \

View File

@ -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)
}