summaryrefslogtreecommitdiff
path: root/build/make
diff options
context:
space:
mode:
authorDragan Mrdjan <dmrdjan@mips.com>2012-04-11 09:53:15 -0700
committerJohann <johannkoenig@google.com>2012-07-10 10:01:54 -0700
commit07ff7fa8114d1d569e5b08d665c887af9bb9495f (patch)
treefab1f11267c2356b2449c86ed96cc899fa428a4b /build/make
parentbb3d510a18350eb44038897187b1c4b28da86200 (diff)
downloadlibvpx-07ff7fa8114d1d569e5b08d665c887af9bb9495f.tar
libvpx-07ff7fa8114d1d569e5b08d665c887af9bb9495f.tar.gz
libvpx-07ff7fa8114d1d569e5b08d665c887af9bb9495f.tar.bz2
libvpx-07ff7fa8114d1d569e5b08d665c887af9bb9495f.zip
VP8 optimizations for MIPS dspr2
Signed-off-by: Raghu Gandham <raghu@mips.com> Change-Id: I3a8bca425cd3dab746a6328c8fc8843c8e87aea6
Diffstat (limited to 'build/make')
-rwxr-xr-xbuild/make/configure.sh9
-rwxr-xr-xbuild/make/rtcd.sh32
2 files changed, 38 insertions, 3 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index 9a520a997..3c73f5988 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -943,13 +943,16 @@ process_common_toolchain() {
esac
;;
mips*)
- CROSS=${CROSS:-mipsel-linux-uclibc-}
link_with_cc=gcc
setup_gnu_toolchain
tune_cflags="-mtune="
+ if enabled dspr2; then
+ check_add_cflags -mips32r2 -mdspr2
+ disable fast_unaligned
+ fi
check_add_cflags -march=${tgt_isa}
- check_add_asflags -march=${tgt_isa}
- check_add_asflags -KPIC
+ check_add_asflags -march=${tgt_isa}
+ check_add_asflags -KPIC
;;
ppc*)
enable ppc
diff --git a/build/make/rtcd.sh b/build/make/rtcd.sh
index 2123aa1c5..860b63f7b 100755
--- a/build/make/rtcd.sh
+++ b/build/make/rtcd.sh
@@ -278,6 +278,29 @@ EOF
}
+mips() {
+ determine_indirection c $ALL_ARCHS
+ cat <<EOF
+$(common_top)
+#include "vpx_config.h"
+
+void ${symbol:-rtcd}(void);
+
+#ifdef RTCD_C
+void ${symbol:-rtcd}(void)
+{
+$(set_function_pointers c)
+#if HAVE_DSPR2
+void dsputil_static_init();
+dsputil_static_init();
+#endif
+}
+#endif
+$(common_bottom)
+EOF
+
+}
+
unoptimized() {
determine_indirection c
cat <<EOF
@@ -309,6 +332,15 @@ case $arch in
require $(filter $REQUIRES)
x86
;;
+ mips32)
+ ALL_ARCHS=$(filter mips32)
+ dspr2=$([ -f "$config_file" ] && eval echo $(grep HAVE_DSPR2 "$config_file"))
+ HAVE_DSPR2="${dspr2#*=}"
+ if [ "$HAVE_DSPR2" = "yes" ]; then
+ ALL_ARCHS=$(filter mips32 dspr2)
+ fi
+ mips
+ ;;
armv5te)
ALL_ARCHS=$(filter edsp)
arm