mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
74df1d8e05
mplayer had three ways of enabling CPU specific assembler routines: a) Enable them at compile time; crash if the CPU can't handle it. b) Enable them at compile time, but let the configure script detect your CPU. Your binary will only crash if you try to run it on a different system that has less features than yours. This was the default, I think. c) Runtime detection. The implementation of b) and c) suck. a) is not really feasible (it sucks for users). Remove all code related to this, and use libav's CPU detection instead. Now the configure script will always enable CPU specific features, and disable them at runtime if libav reports them not as available. One implication is that now the compiler is always expected to handle SSE (etc.) inline assembly at runtime, unless it's explicitly disabled. Only checks for x86 CPU specific features are kept, the rest is either unused or barely used. Get rid of all the dump -mpcu, -march etc. flags. Trust the compiler to select decent settings. Get rid of support for the following operating systems: - BSD/OS (some ancient BSD fork) - QNX (don't care) - BeOS (dead, Haiku support is still welcome) - AIX (don't care) - HP-UX (don't care) - OS/2 (dead, actual support has been removed a while ago) Remove the configure code for detecting the endianness. Instead, use the standard header <endian.h>, which can be used if _GNU_SOURCE or _BSD_SOURCE is defined. (Maybe these changes should have been in a separate commit.) Since this is a quite violent code removal orgy, and I'm testing only on x86 32 bit Linux, expect regressions. |
||
---|---|---|
.. | ||
af_bs2b.c | ||
af_center.c | ||
af_channels.c | ||
af_comp.c | ||
af_delay.c | ||
af_dummy.c | ||
af_equalizer.c | ||
af_export.c | ||
af_extrastereo.c | ||
af_format_alaw.h | ||
af_format_ulaw.h | ||
af_format.c | ||
af_format.h | ||
af_gate.c | ||
af_hrtf.c | ||
af_hrtf.h | ||
af_karaoke.c | ||
af_ladspa.c | ||
af_lavcac3enc.c | ||
af_lavcresample.c | ||
af_pan.c | ||
af_resample_template.c | ||
af_resample.c | ||
af_scaletempo.c | ||
af_sinesuppress.c | ||
af_stats.c | ||
af_sub.c | ||
af_surround.c | ||
af_sweep.c | ||
af_tools.c | ||
af_volnorm.c | ||
af_volume.c | ||
af.c | ||
af.h | ||
control.h | ||
dsp.h | ||
equalizer.h | ||
filter.c | ||
filter.h | ||
format.c | ||
reorder_ch.c | ||
reorder_ch.h | ||
window.c | ||
window.h |