diff options
Diffstat (limited to 'libavutil/arm/cpu.h')
-rw-r--r-- | libavutil/arm/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/arm/cpu.h b/libavutil/arm/cpu.h index 9b3b6ff58b..27a2edacf5 100644 --- a/libavutil/arm/cpu.h +++ b/libavutil/arm/cpu.h @@ -31,4 +31,9 @@ #define have_neon(flags) CPUEXT(flags, NEON) #define have_setend(flags) CPUEXT(flags, SETEND) +/* some functions use the VFPv2 vector mode which is deprecated in ARMv7-A + * and might trap on such CPU depending on the OS configuration */ +#define have_vfp_vm(flags) \ + (have_armv6(flags) && ((flags) & AV_CPU_FLAG_VFP_VM)) + #endif /* AVUTIL_ARM_CPU_H */ |