mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 13:32:16 +00:00
cpudetect: remove unused/forgotten crap
This commit is contained in:
parent
9dbe8e1b84
commit
16c6e1dee9
@ -39,7 +39,6 @@ void GetCpuCaps(CpuCaps *c)
|
||||
memset(c, 0, sizeof(*c));
|
||||
int flags = av_get_cpu_flags();
|
||||
#if ARCH_X86
|
||||
c->isX86 = 1;
|
||||
c->hasMMX = flags & AV_CPU_FLAG_MMX;
|
||||
c->hasMMX2 = flags & AV_CPU_FLAG_MMX2;
|
||||
c->hasSSE = flags & AV_CPU_FLAG_SSE;
|
||||
|
13
cpudetect.h
13
cpudetect.h
@ -22,17 +22,9 @@
|
||||
#include <stdbool.h>
|
||||
#include "config.h"
|
||||
|
||||
#define CPUTYPE_I386 3
|
||||
#define CPUTYPE_I486 4
|
||||
#define CPUTYPE_I586 5
|
||||
#define CPUTYPE_I686 6
|
||||
|
||||
#include "ffmpeg_files/x86_cpu.h"
|
||||
|
||||
typedef struct cpucaps_s {
|
||||
int cpuType;
|
||||
int cpuStepping;
|
||||
bool isX86;
|
||||
bool hasMMX;
|
||||
bool hasMMX2;
|
||||
bool hasSSE;
|
||||
@ -43,11 +35,6 @@ typedef struct cpucaps_s {
|
||||
|
||||
extern CpuCaps gCpuCaps;
|
||||
|
||||
void do_cpuid(unsigned int ax, unsigned int *p);
|
||||
|
||||
void GetCpuCaps(CpuCaps *caps);
|
||||
|
||||
/* returned value is malloc()'ed so free() it after use */
|
||||
char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]);
|
||||
|
||||
#endif /* MPLAYER_CPUDETECT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user