summaryrefslogtreecommitdiff
path: root/libavutil/cpu.c
Commit message (Collapse)AuthorAge
* build: Split test programs off into separate filesDiego Biurrun2016-04-07
| | | | | This avoids spurious library rebuilds when only the test program code is changed and simplifies the build system.
* arm: add a cpu flag for the VFPv2 vector modeJanne Grunau2015-12-14
| | | | | | | | | | | | | | The vector mode was deprecated in ARMv7-A/VFPv3 and various cpu implementations do not support it in hardware. Vector mode code will depending the OS either be emulated in software or result in an illegal instruction on cpus which does not support it. This was not really problem in practice since NEON implementations of the same functions are preferred. It will however become a problem for checkasm which tests every cpu flag separately. Since this is a cpu feature newer cpu do not support anymore the behaviour of this flag differs from the other flags. It can be only activated by runtime cpu feature selection.
* x86: add AV_CPU_FLAG_AVXSLOW flagJames Almer2015-05-31
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avutil: remove pointless bmi1 defineJames Almer2015-04-19
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* cpu-test: Add unistd.h #include for getopt()Diego Biurrun2014-08-13
|
* cpu-test: test av_cpu_countJanne Grunau2014-08-04
| | | | Add CPU count and number threads as informative values for fate.
* fate: add informative cpu testJanne Grunau2014-08-04
| | | | | | | | libavutil/cpu-test prints raw and effective cpu flags to STDERR. Detected cpu flags can be useful for debugging fate errors. No comparison of the result against a expected result since that would require fate config specific references.
* aarch64: add armv8 CPU flagJanne Grunau2014-04-06
|
* x86: add detection for Bit Manipulation Instruction setsJames Almer2014-02-23
| | | | | | Based on x264 code Signed-off-by: James Almer <jamrial@gmail.com>
* x86: add detection for FMA3 instruction setJames Almer2014-02-23
| | | | | | Based on x264 code Signed-off-by: James Almer <jamrial@gmail.com>
* aarch64: add cpuflags support for NEON and VFPJanne Grunau2014-01-15
| | | | | | | NEON and VFP are currently mandatory for all ARMv8 profiles. Both are handled as extensions as far as cpuflags are concerned. This is consistent with handling x86_64 which always has SSE2, but still handles it as an extension.
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-23
|
* libavutil: x86: Add AVX2 capable CPU detection.Kieran Kunhya2013-10-25
| | | | | | Patch based on x264's AVX2 detection Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avutil: Move internal CPU detection function declarations to private headerDiego Biurrun2013-08-28
|
* cpu: Restructure code to avoid pointless ret variable indirectionDiego Biurrun2013-06-02
| | | | libavutil/cpu.c:133:9: warning: unused variable ‘ret’ [-Wunused-variable]
* cpu: Include common.h for av_popcount64Martin Storsjö2013-05-24
| | | | | | This fixes build failures on windows since 2a6eaeaa8. Signed-off-by: Martin Storsjö <martin@martin.st>
* Move get_logical_cpus() from lavc/pthread to lavu/cpu.Anton Khirnov2013-05-24
| | | | | It will be useful in lavfi, and could conceivably be useful to the user applications as well.
* Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-04
|
* avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: build: replace mmx2 by mmxextDiego Biurrun2012-08-03
| | | | | | | Refactoring mmx2/mmxext YASM code with cpuflags will force renames. So switching to a consistent naming scheme beforehand is sensible. The name "mmxext" is more official and widespread and also the name of the CPU flag, as reported e.g. by the Linux kernel.
* x86: Add CPU flag for the i686 cmov instructionDiego Biurrun2012-06-23
|
* cpu: recognise only cpu flag names pertinent to the architectureMans Rullgard2012-04-25
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avutil: add av_parse_cpu_flags() functionMans Rullgard2012-04-25
| | | | | | | This moves the cpu flag parsing code from avconv to avutil so it can be accessed elsewhere. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: allow runtime masking of CPU featuresMans Rullgard2012-04-22
| | | | | | | This allows masking CPU features with the -cpuflags avconv option which is useful for testing different optimisations without rebuilding. Signed-off-by: Mans Rullgard <mans@mansr.com>
* remove iwmmxt optimizationsJanne Grunau2012-03-12
| | | | | | The were broken since August of 2010 without anyone noticing until three weeks ago. Nobody cares about it anymore and hopefully Marvell will support NEON like in the PXA978 from now on.
* cpu: initialize mask to -1, so that by default, optimizations are used.Ronald S. Bultje2012-03-06
|
* cpu: add av_set_cpu_flags_mask().Anton Khirnov2012-03-06
|
* x86: XOP/FMA4 CPU detection supportJason Garrett-Glaser2011-09-26
|
* Fix cpu flags test programMans Rullgard2011-06-30
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add a CPU flag for the Atom processor.Justin Ruggles2011-03-22
| | | | | | | The Atom has SSSE3 support, which is useful in many cases, but sometimes the SSSE3 version is slower than the SSE2 equivalent on the Atom, but is generally faster on other processors supporting SSSE3. This flag allows for selectively disabling certain SSSE3 functions on the Atom.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: check for AVX supportMans Rullgard2011-02-20
| | | | | | This adds configure and runtime checks for AVX support on x86 CPUs. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cpu-test: include stdio.h only for test progMans Rullgard2011-01-18
|
* fix building of cpu-test by including required headerRamiro Polla2010-12-07
| | | | Originally committed as revision 25917 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cache detected CPU flagsMåns Rullgård2010-09-09
| | | | Originally committed as revision 25085 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Clean up av_get_cpu_flag()Måns Rullgård2010-09-09
| | | | | | | | Instead of defining functions in per-arch header files included by the main cpu.c, define them normally and call them from the generic one. Originally committed as revision 25084 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move mm_support() from libavcodec to libavutil, make it a publicStefano Sabatini2010-09-08
function and rename it to av_get_cpu_flags(). Originally committed as revision 25076 to svn://svn.ffmpeg.org/ffmpeg/trunk