summaryrefslogtreecommitdiffstats
path: root/libpixelflinger
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-08-02 16:18:24 -0700
committerElliott Hughes <enh@google.com>2018-08-02 16:18:24 -0700
commita55c033d92f36c877097efd7596b99659dd02266 (patch)
tree3b9f679d6080a1515f32f4ea77c3733aa16d728f /libpixelflinger
parent4c87c1743efecaf992c7d0340041458f78fc9294 (diff)
downloadsystem_core-a55c033d92f36c877097efd7596b99659dd02266.tar.gz
system_core-a55c033d92f36c877097efd7596b99659dd02266.tar.bz2
system_core-a55c033d92f36c877097efd7596b99659dd02266.zip
Remove dead gglFastDivx.
Bug: http://b/112155920 Bug: https://www.viva64.com/en/b/0579/ Test: builds Change-Id: Ia55245ce4484d5376abef16c9863015b0a0ca2b1
Diffstat (limited to 'libpixelflinger')
-rw-r--r--libpixelflinger/fixed.cpp11
-rw-r--r--libpixelflinger/include/private/pixelflinger/ggl_fixed.h1
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)
// ------------------------------------------------------------------------
-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
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) {
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);