b=1042508 enable neon resampler optimizations r=padenot

--HG--
extra : rebase_source : fd984143b78ecf25a5158715dd8bed8df7398945
This commit is contained in:
Karl Tomlinson 2014-07-22 16:51:08 +12:00
parent ee8186f60a
commit ddcaf3a3a7

View File

@ -42,6 +42,13 @@ if CONFIG['INTEL_ARCHITECTURE'] and not CONFIG['MOZ_SAMPLE_TYPE_S16']:
]
SOURCES['resample_sse.c'].flags += CONFIG['SSE2_FLAGS']
if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']:
DEFINES['_USE_NEON'] = True
SOURCES += [
'resample_neon.c'
]
SOURCES['resample_neon.c'].flags += ['-mfpu=neon']
# Suppress warnings in third-party code.
if CONFIG['GNU_CC']:
CFLAGS += ['-Wno-sign-compare']