some code cleanup i have left in my folder :)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7560 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Rodolfo Osvaldo Bogado
2011-05-25 18:14:29 +00:00
parent a9f7a0c284
commit 0e225a5ad1
4 changed files with 74 additions and 96 deletions

View File

@ -29,12 +29,12 @@ namespace MathUtil
static const u64 DOUBLE_SIGN = 0x8000000000000000ULL,
DOUBLE_EXP = 0x7FF0000000000000ULL,
DOUBLE_FRAC = 0x000FFFFFFFFFFFFFULL,
DOUBLE_ZERO = 0x0000000000000000ULL,
DOUBLE_ZERO = 0x0000000000000000ULL;
FLOAT_SIGN = 0x80000000,
static const u32 FLOAT_SIGN = 0x80000000,
FLOAT_EXP = 0x7F800000,
FLOAT_FRAC = 0x007FFFFF,
FLOAT_ZERO = 0x00000000ULL;
FLOAT_ZERO = 0x00000000;
union IntDouble {
double d;
@ -99,9 +99,9 @@ enum PPCFpClass
// Uses PowerPC conventions for the return value, so it can be easily
// used directly in CPU emulation.
int ClassifyDouble(double dvalue);
u32 ClassifyDouble(double dvalue);
// More efficient float version.
int ClassifyFloat(float fvalue);
u32 ClassifyFloat(float fvalue);
template<class T>
struct Rectangle