diff options
author | Elliott Hughes | 2018-08-03 09:24:22 -0500 |
---|---|---|
committer | Gerrit Code Review | 2018-08-03 09:24:22 -0500 |
commit | a02ca9e7ae2706d8c82759829ffe9c96e87d7adf (patch) | |
tree | b97d1907785beff4c136bb9ca99f922c8eb43a1e | |
parent | 8cf510ff81d3027d9af3fbb5f717e199acb6b312 (diff) | |
parent | a55c033d92f36c877097efd7596b99659dd02266 (diff) | |
download | platform-system-core-a02ca9e7ae2706d8c82759829ffe9c96e87d7adf.tar.gz platform-system-core-a02ca9e7ae2706d8c82759829ffe9c96e87d7adf.tar.xz platform-system-core-a02ca9e7ae2706d8c82759829ffe9c96e87d7adf.zip |
Merge "Remove dead gglFastDivx."
-rw-r--r-- | libpixelflinger/fixed.cpp | 11 | ||||
-rw-r--r-- | libpixelflinger/include/private/pixelflinger/ggl_fixed.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/libpixelflinger/fixed.cpp b/libpixelflinger/fixed.cpp index 509453776..de6b4794f 100644 --- a/libpixelflinger/fixed.cpp +++ b/libpixelflinger/fixed.cpp | |||
@@ -70,17 +70,6 @@ int32_t gglRecipQ(GGLfixed x, int q) | |||
70 | 70 | ||
71 | // ------------------------------------------------------------------------ | 71 | // ------------------------------------------------------------------------ |
72 | 72 | ||
73 | GGLfixed gglFastDivx(GGLfixed n, GGLfixed d) | ||
74 | { | ||
75 | if ((d>>24) && ((d>>24)+1)) { | ||
76 | n >>= 8; | ||
77 | d >>= 8; | ||
78 | } | ||
79 | return gglMulx(n, gglRecip(d)); | ||
80 | } | ||
81 | |||
82 | // ------------------------------------------------------------------------ | ||
83 | |||
84 | static const GGLfixed ggl_sqrt_reciproc_approx_tab[8] = { | 73 | static const GGLfixed ggl_sqrt_reciproc_approx_tab[8] = { |
85 | // 1/sqrt(x) with x = 1-N/16, N=[8...1] | 74 | // 1/sqrt(x) with x = 1-N/16, N=[8...1] |
86 | 0x16A09, 0x15555, 0x143D1, 0x134BF, 0x1279A, 0x11C01, 0x111AC, 0x10865 | 75 | 0x16A09, 0x15555, 0x143D1, 0x134BF, 0x1279A, 0x11C01, 0x111AC, 0x10865 |
diff --git a/libpixelflinger/include/private/pixelflinger/ggl_fixed.h b/libpixelflinger/include/private/pixelflinger/ggl_fixed.h index 51e9e2695..7f39e9b97 100644 --- a/libpixelflinger/include/private/pixelflinger/ggl_fixed.h +++ b/libpixelflinger/include/private/pixelflinger/ggl_fixed.h | |||
@@ -86,7 +86,6 @@ GGLfixed gglRoundx(GGLfixed v) { | |||
86 | GGLfixed gglPowx(GGLfixed x, GGLfixed y) CONST; | 86 | GGLfixed gglPowx(GGLfixed x, GGLfixed y) CONST; |
87 | GGLfixed gglSqrtx(GGLfixed a) CONST; | 87 | GGLfixed gglSqrtx(GGLfixed a) CONST; |
88 | GGLfixed gglSqrtRecipx(GGLfixed x) CONST; | 88 | GGLfixed gglSqrtRecipx(GGLfixed x) CONST; |
89 | GGLfixed gglFastDivx(GGLfixed n, GGLfixed d) CONST; | ||
90 | int32_t gglMulDivi(int32_t a, int32_t b, int32_t c); | 89 | int32_t gglMulDivi(int32_t a, int32_t b, int32_t c); |
91 | 90 | ||
92 | int32_t gglRecipQNormalized(int32_t x, int* exponent); | 91 | int32_t gglRecipQNormalized(int32_t x, int* exponent); |