diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-07 18:34:35 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-13 14:50:15 +0200 |
commit | 1e519b9d407fd35538b8d4dfdc723448355e9fe1 (patch) | |
tree | 6b0389e282867cc19c9cd32a2af7030e10d4c081 /libavutil/arm/cpu.h | |
parent | 9f61d6d8fb658ec5156f323d5c2264de5383b951 (diff) | |
download | ffmpeg-1e519b9d407fd35538b8d4dfdc723448355e9fe1.tar.gz |
avutil: turn arm setend into a cpuflag
this allows disabling and enabling it
it also prevents crashes if vfpv3 and neon are disabled which previously
would have enabled the flag
And last but not least one can enable setend on cpus like cortex-a8 where
its fast but disabled by default
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/arm/cpu.h')
-rw-r--r-- | libavutil/arm/cpu.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavutil/arm/cpu.h b/libavutil/arm/cpu.h index f056a91ca5..9b3b6ff58b 100644 --- a/libavutil/arm/cpu.h +++ b/libavutil/arm/cpu.h @@ -29,11 +29,6 @@ #define have_vfp(flags) CPUEXT(flags, VFP) #define have_vfpv3(flags) CPUEXT(flags, VFPV3) #define have_neon(flags) CPUEXT(flags, NEON) - -/* Some functions use the 'setend' instruction which is deprecated on ARMv8 - * and serializing on some ARMv7 cores. This macro ensures such functions - * are only enabled on ARMv6. */ -#define have_setend(flags) \ - (have_armv6(flags) && !(have_vfpv3(flags) || have_neon(flags))) +#define have_setend(flags) CPUEXT(flags, SETEND) #endif /* AVUTIL_ARM_CPU_H */ |