JIT: implement fres

Mostly a straightforward translation of the interpreter code, with a few
tricksy optimizations and fallbacks for rare paths.
This commit is contained in:
Fiora
2014-09-03 12:11:02 -07:00
parent c72a133206
commit 1b50f9df14
9 changed files with 158 additions and 68 deletions

View File

@ -125,9 +125,12 @@ u32 ClassifyFloat(float fvalue);
extern const int frsqrte_expected_base[];
extern const int frsqrte_expected_dec[];
extern const int fres_expected_base[];
extern const int fres_expected_dec[];
// The PowerPC approximate square root algorithm
// PowerPC approximation algorithms
double ApproximateReciprocalSquareRoot(double val);
double ApproximateReciprocal(double val);
template<class T>
struct Rectangle