summaryrefslogtreecommitdiff
path: root/render/archppc.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2005-06-04 15:58:45 +0200
committerTor Andersson <tor@ghostscript.com>2005-06-04 15:58:45 +0200
commit7ee19483ed81a885f464d4e93f4eefb3d4037d30 (patch)
treee4d3faf561e694ae0cc7873381450db6a011ab5a /render/archppc.c
parentaf699a4657e103bd8fa72356eb3abebf221fe93a (diff)
downloadmupdf-7ee19483ed81a885f464d4e93f4eefb3d4037d30.tar.xz
new world order
Diffstat (limited to 'render/archppc.c')
-rw-r--r--render/archppc.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/render/archppc.c b/render/archppc.c
deleted file mode 100644
index 2d0fee1d..00000000
--- a/render/archppc.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * PowerPC specific render optims live here
- */
-
-#include <fitz.h>
-
-typedef unsigned char byte;
-
-#ifdef HAVE_ALTIVEC
-
-static void srow1ppc(byte *src, byte *dst, int w, int denom)
-{
- int x, left;
- int sum;
-
- left = 0;
- sum = 0;
-
- for (x = 0; x < w; x++)
- {
- sum += *src++;
- if (++left == denom)
- {
- left = 0;
- *dst++ = sum / denom;
- sum = 0;
- }
- }
-
- if (left)
- *dst++ = sum / left;
-}
-
-static void scol1ppc(byte *src, byte *dst, int w, int denom)
-{
- int x, y;
- unsigned char *s;
- int sum;
-
- for (x = 0; x < w; x++)
- {
- s = src + x;
- sum = 0;
- for (y = 0; y < denom; y++)
- sum += s[y * w];
- *dst++ = sum / denom;
- }
-}
-
-#endif /* HAVE_ALTIVEC */
-
-#if defined (ARCH_PPC)
-void
-fz_accelerate(void)
-{
-# ifdef HAVE_ALTIVEC
- if (fz_cpuflags & HAVE_ALTIVEC)
- {
- fz_srow1 = srow1ppc;
- fz_scol1 = scol1ppc;
- }
-# endif
-}
-#endif
-