Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: third_party/opus/opus.gyp

Issue 150103006: Enabling ARM optimizations for Opus on Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/opus/opus_arm_srcs.gypi » ('j') | third_party/opus/opus_arm_srcs.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/opus.gyp
diff --git a/third_party/opus/opus.gyp b/third_party/opus/opus.gyp
index be0ae4e01efe77acc50a3ae8d6343e89849926c7..9181cea05a01df29624c25b26dc7a0980d9a107b 100644
--- a/third_party/opus/opus.gyp
+++ b/third_party/opus/opus.gyp
@@ -7,6 +7,7 @@
'conditions': [
['OS=="android"', {
tlegrand1 2014/02/07 14:38:43 We only enable the optimizations for android at th
'use_opus_fixed_point%': 1,
+ 'opus_arm_optimization%': 1,
}, {
'use_opus_fixed_point%': 0,
}],
@@ -65,6 +66,41 @@
'sources/': [
['exclude', '/float/[^/]*_FLP.(h|c)$'],
],
+ 'conditions': [
+ ['opus_arm_optimization==1', {
+ 'defines': [
+ 'OPUS_ARM_INLINE_ASM',
+ 'OPUS_ARM_INLINE_EDSP',
+ 'OPUS_ARM_ASM',
+ 'OPUS_HAVE_RTCD',
+ 'OPUS_ARM_MAY_HAVE_EDSP',
+ 'OPUS_ARM_MAY_HAVE_MEDIA',
+ 'OPUS_ARM_MAY_HAVE_NEON',
Sergey Ulanov 2014/02/06 18:23:13 Sort these alphabetically please
tlegrand1 2014/02/07 14:38:43 Done.
+ ], # defines
Sergey Ulanov 2014/02/06 18:23:13 nit: two spaces before comments. Also I don't thin
tlegrand1 2014/02/07 14:38:43 Done.
+ 'include_dirs': [
+ 'src/celt/arm',
+ ], # include_dirs
+ 'includes': [
+ 'opus_arm_srcs.gypi',
+ ], # includes
+ 'conditions': [
+ ['(target_arch=="arm" and arm_version==7) or target_arch=="armv7"', {
+ 'cflags': [
+ '-mfpu=neon',
Sergey Ulanov 2014/02/06 18:23:13 Why do you need this? I think build/common.gypi sh
tlegrand1 2014/02/07 14:38:43 I think you are right, but I need to verify that i
+ ], # cflags
+ 'cflags/': [
+ ['exclude', '^-mfpu=.*'],
+ ['include', '-mfpu=neon'],
+ ], # cflags/
+ }, {
+ 'sources!': [
+ 'src/celt/pitch_arm.h',
+ 'src/celt/arm/celt_pitch_xcorr_arm_gnu.S',
+ ], # sources
Sergey Ulanov 2014/02/06 18:23:13 sources!, but I suggest to just remove this commen
tlegrand1 2014/02/07 14:38:43 Done.
+ }], # target_arch=="arm" ...
+ ], # conditions
+ }], # opus_arm_optimization==1
+ ], # conditions
}],
],
}, # target opus
« no previous file with comments | « no previous file | third_party/opus/opus_arm_srcs.gypi » ('j') | third_party/opus/opus_arm_srcs.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698