summaryrefslogtreecommitdiffstats
path: root/common/cpudetect.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 23:15:32 +0100
committerwm4 <wm4@nowhere>2013-12-21 23:15:32 +0100
commit0a3e9a9ac3a90da831b497e0613dfb66bc14f3d2 (patch)
treeb70f214f8c3fc802d6d6edbf8395273c854ac0fd /common/cpudetect.c
parenta4fe95b0d8d339ba5afbdb5346ad8fd367a4a1c1 (diff)
parent245e5b844177e9ad9a9c07eff5efab7c3fccdebc (diff)
downloadmpv-0a3e9a9ac3a90da831b497e0613dfb66bc14f3d2.tar.bz2
mpv-0a3e9a9ac3a90da831b497e0613dfb66bc14f3d2.tar.xz
Merge branch 'msg_refactor'
This branch changes mp_msg() so that it doesn't require global context. The changes are pretty violent.
Diffstat (limited to 'common/cpudetect.c')
-rw-r--r--common/cpudetect.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/common/cpudetect.c b/common/cpudetect.c
index ea28cf4dd4..d68370f231 100644
--- a/common/cpudetect.c
+++ b/common/cpudetect.c
@@ -25,16 +25,9 @@
#include "config.h"
#include "common/cpudetect.h"
-#include "common/msg.h"
CpuCaps gCpuCaps;
-static void dump_flag(const char *name, bool val)
-{
- mp_msg(MSGT_CPUDETECT, MSGL_V, "CPU: %s: %s\n", name,
- val ? "enabled" : "disabled");
-}
-
void GetCpuCaps(CpuCaps *c)
{
memset(c, 0, sizeof(*c));
@@ -47,10 +40,4 @@ void GetCpuCaps(CpuCaps *c)
c->hasSSE3 = (flags & AV_CPU_FLAG_SSE3) && !(flags & AV_CPU_FLAG_SSE3SLOW);
c->hasSSSE3 = flags & AV_CPU_FLAG_SSSE3;
#endif
- dump_flag("MMX", c->hasMMX);
- dump_flag("MMX2", c->hasMMX2);
- dump_flag("SSE", c->hasSSE);
- dump_flag("SSE2", c->hasSSE2);
- dump_flag("SSE3", c->hasSSE3);
- dump_flag("SSSE3", c->hasSSSE3);
}