Index: transform_asm.sh |
diff --git a/transform_asm.sh b/transform_asm.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..a5309dad8c2bb238b54c84680d498f26493b069d |
--- /dev/null |
+++ b/transform_asm.sh |
@@ -0,0 +1,13 @@ |
+#!/bin/sh |
+ |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+# This is to transfer the assembly codes used for Opus optimization on ARM |
+# platforms, into the GNU format. |
+ |
+SRC_DIR='celt/arm/' |
+DST_DIR='celt/arm/' |
+sed 's/@[A-Z,_]*@/1/g' ${SRC_DIR}armopts.s.in | perl ${SRC_DIR}arm2gnu.pl > ${DST_DIR}armopts_gnu.S |
+perl ${SRC_DIR}arm2gnu.pl ${SRC_DIR}celt_pitch_xcorr_arm.s | sed 's/celt\/arm\/armopts.s/armopts_gnu.S/g' > ${DST_DIR}celt_pitch_xcorr_arm_gnu.S |