mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1085599: Enable NEON intrinsics for C files when even when building for ARMv6. r=rillian,ted
This commit is contained in:
parent
471d6e8f88
commit
8cb82039c5
@ -51,7 +51,6 @@ if CONFIG['VPX_X86_ASM']:
|
||||
arm_asm_files = []
|
||||
if CONFIG['VPX_ARM_ASM']:
|
||||
arm_asm_files += files['ARM_ASM']
|
||||
CFLAGS += ['-mfpu=neon']
|
||||
|
||||
if CONFIG['VPX_AS_CONVERSION']:
|
||||
GENERATED_SOURCES += [ "%s.%s" % (f, CONFIG['VPX_ASM_SUFFIX'])
|
||||
@ -63,6 +62,10 @@ if CONFIG['VPX_ARM_ASM']:
|
||||
else:
|
||||
SOURCES += sorted(arm_asm_files)
|
||||
|
||||
for f in SOURCES:
|
||||
if f.endswith('.c') and 'neon' in f:
|
||||
SOURCES[f].flags += ['-march=armv7-a', '-mthumb', '-mfloat-abi=softfp', '-mfpu=neon']
|
||||
|
||||
# boolhuff_armv5te.asm defines the same functions as boolhuff.c instead of
|
||||
# using RTCD, so we have to make sure we only add one of the two.
|
||||
if 'vp8/encoder/arm/armv5te/boolhuff_armv5te.asm' not in arm_asm_files:
|
||||
|
Loading…
Reference in New Issue
Block a user