JIT: implement frsqrte

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-02 20:50:03 -07:00
parent b583879c2a
commit c72a133206
10 changed files with 200 additions and 98 deletions

View File

@ -123,6 +123,12 @@ u32 ClassifyDouble(double dvalue);
// More efficient float version.
u32 ClassifyFloat(float fvalue);
extern const int frsqrte_expected_base[];
extern const int frsqrte_expected_dec[];
// The PowerPC approximate square root algorithm
double ApproximateReciprocalSquareRoot(double val);
template<class T>
struct Rectangle
{