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

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: Addressing comments 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_srcs_arm.gypi » ('j') | no next file with comments »
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..f153073b3fd6425e484511a64a573e7b03bf4895 100644
--- a/third_party/opus/opus.gyp
+++ b/third_party/opus/opus.gyp
@@ -7,6 +7,7 @@
'conditions': [
['OS=="android"', {
'use_opus_fixed_point%': 1,
+ 'opus_arm_optimization%': 1,
tlegrand1 2014/02/11 15:45:07 As you see we only enable for Android at the momen
Sergey Ulanov 2014/02/13 20:34:28 Android is now always ARM (e.g. there are Intel-ba
}, {
'use_opus_fixed_point%': 0,
}],
@@ -65,6 +66,41 @@
'sources/': [
['exclude', '/float/[^/]*_FLP.(h|c)$'],
],
+ 'conditions': [
+ ['opus_arm_optimization==1', {
+ 'defines': [
+ 'OPUS_ARM_ASM',
+ 'OPUS_ARM_INLINE_ASM',
+ 'OPUS_ARM_INLINE_EDSP',
+ 'OPUS_ARM_MAY_HAVE_EDSP',
+ 'OPUS_ARM_MAY_HAVE_MEDIA',
+ 'OPUS_ARM_MAY_HAVE_NEON',
+ 'OPUS_HAVE_RTCD',
+ ],
+ 'include_dirs': [
+ 'src/celt/arm',
+ ],
+ 'includes': [
+ 'opus_srcs_arm.gypi',
+ ],
+ 'conditions': [
+ ['(target_arch=="arm" and arm_version==7) or target_arch=="armv7"', {
minyue 2014/02/18 13:52:56 We may try to change this line to ['target_arch==
+ 'cflags': [
+ '-mfpu=neon',
+ ],
+ 'cflags/': [
+ ['exclude', '^-mfpu=.*'],
+ ['include', '-mfpu=neon'],
+ ],
+ }, {
+ 'sources!': [
+ 'src/celt/pitch_arm.h',
+ 'src/celt/arm/celt_pitch_xcorr_arm_gnu.S',
+ ],
+ }],
+ ],
+ }],
+ ],
}],
],
}, # target opus
« no previous file with comments | « no previous file | third_party/opus/opus_srcs_arm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698