Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71797610 authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "Remove dead gglFastDivx."

am: a02ca9e7

Change-Id: I2f836242c432b3695f768b184b87cef1a1f8ea1e
parents 794fb010 a02ca9e7
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -70,17 +70,6 @@ int32_t gglRecipQ(GGLfixed x, int q)

// ------------------------------------------------------------------------

GGLfixed gglFastDivx(GGLfixed n, GGLfixed d)
{
    if ((d>>24) && ((d>>24)+1)) {
        n >>= 8;
        d >>= 8;
    }
    return gglMulx(n, gglRecip(d));
}

// ------------------------------------------------------------------------

static const GGLfixed ggl_sqrt_reciproc_approx_tab[8] = {
    // 1/sqrt(x) with x = 1-N/16, N=[8...1]
    0x16A09, 0x15555, 0x143D1, 0x134BF, 0x1279A, 0x11C01, 0x111AC, 0x10865
+0 −1
Original line number Diff line number Diff line
@@ -86,7 +86,6 @@ GGLfixed gglRoundx(GGLfixed v) {
GGLfixed gglPowx(GGLfixed x, GGLfixed y) CONST;
GGLfixed gglSqrtx(GGLfixed a) CONST;
GGLfixed gglSqrtRecipx(GGLfixed x) CONST;
GGLfixed gglFastDivx(GGLfixed n, GGLfixed d) CONST;
int32_t gglMulDivi(int32_t a, int32_t b, int32_t c);

int32_t gglRecipQNormalized(int32_t x, int* exponent);