mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-30 23:10:32 +00:00
1e519b9d40
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>
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef AVUTIL_ARM_CPU_H
|
|
#define AVUTIL_ARM_CPU_H
|
|
|
|
#include "config.h"
|
|
#include "libavutil/cpu.h"
|
|
#include "libavutil/cpu_internal.h"
|
|
|
|
#define have_armv5te(flags) CPUEXT(flags, ARMV5TE)
|
|
#define have_armv6(flags) CPUEXT(flags, ARMV6)
|
|
#define have_armv6t2(flags) CPUEXT(flags, ARMV6T2)
|
|
#define have_vfp(flags) CPUEXT(flags, VFP)
|
|
#define have_vfpv3(flags) CPUEXT(flags, VFPV3)
|
|
#define have_neon(flags) CPUEXT(flags, NEON)
|
|
#define have_setend(flags) CPUEXT(flags, SETEND)
|
|
|
|
#endif /* AVUTIL_ARM_CPU_H */
|